none
Can any one help me to find how await and asyc work RRS feed

  • Question

  • Below is the url from where i have read.

    https://www.youtube.com/watch?v=_3XOJHpBv-8 

    Sunday, March 15, 2015 5:40 PM

Answers

  • Actually async won't create a process, instead it creates a ThreadPool task in your current ThreadPool, waiting for vacant thread to execute it. (The TaskScheduler is the one provided by .NET runtime like the GarbageCollector, not Task Manager)

    Back to the topic. I think it's better to read Eric Lippert's explanation of the subject here.

    Monday, March 16, 2015 2:12 AM
    Answerer

All replies

  • The async creates a process just like the processes in Task Manager.  The await is a semaphore that blocks a process until a message is received to continue.  Both are using the windows services features that are part of the process library. 

    jdweng

    Sunday, March 15, 2015 7:43 PM
  • Simply put - it's "lazy/easy threading" :)

    This is my absolute favorite resource for understanding Async / await:

    http://channel9.msdn.com/Series/Three-Essential-Tips-for-Async

    Just watching the intro video should give you a solid, high level understanding of the async/await pattern and how it works "under the hood".  But I recommend setting aside an hour and watching all 6.  And then watch them again once you've put it to practice.

    Sunday, March 15, 2015 10:16 PM
  • Actually async won't create a process, instead it creates a ThreadPool task in your current ThreadPool, waiting for vacant thread to execute it. (The TaskScheduler is the one provided by .NET runtime like the GarbageCollector, not Task Manager)

    Back to the topic. I think it's better to read Eric Lippert's explanation of the subject here.

    Monday, March 16, 2015 2:12 AM
    Answerer