First, what are the local and global queues? This is an optimization of parallel processing in .Net 4.0. If you have many small ones Taskand only one global queue, you get a lot of controversy. This is because all threads accept Taskfor processing from the same place (front of the global queue), and they also put a new Taskone in the same place (back of the global queue). This requires a lot of synchronization between threads, which can affect performance.
TPL .Net 4.0 "work-stealing": , , ThreadPool ( ) . - Task, - . Task, .
. Task, ( ):
- " ": "" Task . , . Task LIFO- , Task ( ), , CPU.
( ), . .NET 4.0".
, reentrancy? . , , Task , . , Task. , Task , Task .