I was reading a question on difference between Thread and Task. I got this link to read on: Task Schedulers on MSDN.
But i got confused on this paragraph:
In some cases, when a Task is waited on, it may be executed synchronously on the Thread that is performing the wait operation. This enhances performance, as it prevents the need for an additional Thread by utilizing the existing Thread which would have blocked, otherwise. To prevent errors due to re-entrancy, task inlining only occurs when the wait target is found in the relevant Thread's local queue.
I want to understand the highlighted portion. Moreover, i local cache and global queue is also bit confusing... i am really curious to understand the TaskScheduler... Please help..