1)wat is the use of asynchronous methods?
2)when we use this methods?
3)how to know the asynchronous methods are invoke?
1)wat is the use of asynchronous methods?
2)when we use this methods?
3)how to know the asynchronous methods are invoke?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Matthew CochranPosted Apr 17, 2008, 7:20 PM
Async calls are used to process a request on a worker thread from the thread pool. They can be used for two reasons (1) to make the user experience better in a windows by making a lower priority thread do some data processing in the background while the main ui thread can be responsive to the user (2) to avoid blocking a thread while doing a compute bound i/o task like reading from a file, writing to a database, or calling a web service.
It depends on what you are trying to accomplish. Using async calls automatically throws you in the multi-threading arena which can get really complicated really fast and should not be done unless you have a really good reason.
I hope this helps
-Matt