Встраивание задачи -Запрос

Я читал вопрос о разнице между Thread и Task. Я получил эту ссылку, чтобы прочитать на:Планировщики заданий в MSDN .

Но я запутался в этом абзаце:

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.

Я хочу понять выделенную часть. Кроме того, локальный кеш и глобальная очередь также немного сбивают с толку... мне действительно любопытно понять TaskScheduler... Помогите пожалуйста..

5
задан svick 21 August 2012 в 09:12
поделиться