(X) Hide this
    • Login
    • Join
      • Say No Bots Generate New Image
        By clicking 'Register' you accept the terms of use .

Synchronous to Asynchronous Explained

(0 votes)
0 comments   /   posted by Silverlight Show on Aug 13, 2012
Tags:   asynchronous , jeremy-likness

Read original post by Jeremy Likness at C#er : IMage

I've posted several articles about the new async and await keywords that are available in Visual Studio 2012, but I still see some people struggle with the concept. How do you make a task asynchronous? When and where do you use the async keyword?

The answer is not simple because the need to process asynchronously depends on a variety of factors. There is overhead when you create a thread. It allocates memory and creates a new synchronization context. Having a thread communicate with other threads is even more expensive and adds complexity to your code. Fortunately, the teams at Microsoft introduced the Task Parallel Library to help simplify how you work with threads. I strongly recommend learning as much as you can about the Task object if you wish to master asynchronous programming.


Comments

No comments

Add Comment

Login to comment:
  *      *       

Our News on Twitter