Chapter 9. Task Scheduler

This chapter introduces the Intel Threading Building Blocks task scheduler. The task scheduler is the heart of Threading Building Blocks, but generally it is not used directly after you initialize it by constructing a tbb::task_scheduler_init.

The task scheduler is the engine that powers the loop templates. When practical, you should use the loop templates instead of the task scheduler because the templates hide the complexity of the scheduler. However, if you have an algorithm that does not naturally map onto one of the high-level templates, use the task scheduler. All of the scheduler functionality used by the high-level templates is available for you to use directly, so you can build new high-level templates that are just as powerful as the existing ones.

Get Intel Threading Building Blocks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.