Intel® Threading Building Blocks (Intel® TBB) 2.2 and later automatically initializes the task scheduler. You can use class task_scheduler_init to explicitly initialize the task scheduler, which can be useful for doing any of the following:
Control when the task scheduler is constructed and destroyed.
Specify the number of threads used by the task scheduler.
Specify the stack size for worker threads.