Usually the methods are synchronous. That means that you
call them, they gets executed. And when they finish you get
the control back.
The asynchronous methods are different. You call them. They
start executing, but return the control over the execution
back to the thread which called them while they continue to
execute in different thread.
-------------------------------------------------------------
Synchronous is one after another, so you send one email
when that process is done it sends the
next one. Asynchronous starts sending an email and it
doesn't care if the first one is done and will
start the second, and this goes on until all emails are
sent. Normally, an asynchronous process
would open a new thread and run in the background.
Comments
Post a Comment