Bhargo Dev Arya wrote:Ia m still confused about what exactly is meant by asynchronous and synchronous event???
A synchronous event is an event that is part of a set of events related to each other by time (usually because they must occur in a specific sequence). Asynchronous simply means "not synchronous".
You find it most often when dealing with communication styles or protocols. RMI is an example of a synchronous protocol since the caller must sit and wait (this is referred to as 'blocking') until the called method has completed its task. Many messaging protocols, such as JMS, on the other hand, are asynchronous: when a program sends a message, it doesn't necessarily need to wait around for a reply.
Isn't it funny how there's always time and money enough to do it WRONG?
To give you a "real-life" example: telephone is a synchronous communication. You speak and wait for a response. The person at the other end has to be listening at the time. Email is asynchronous - you fire off an email, and go and do something else. The other person can pick it up whenever, and reply when they like.