how async/await different thread ID
I was reading about async/await recently and I am confused with the fact that many of the articles/posts I was reading state that new thread is not created when using async await (Example).
I have created a simple console app to test it
Output of the following code is:
Am I missing the point, or thisIsAsyncEnd is having different thread ID than other actions?
I have updated code as suggested in the answer below to
Quote from the answer below:
I want to know where does the
I recommend you read my
As I explain on my blog, truly asynchronous operations do not “run” anywhere. In this particular case (
Once you understand how
The important takeaway here is that the thread pool is used because there’s no context. It is not automagically used “when necessary”. If you were to run the same