- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In OpenMp we have omp_get_num_threads() that return the number of the available threads on the system. Do we have any function or class property in TBB that tell us the similar number(number of available tasks or available threads)?
I know in TBB we have tasks instead of thread, but I need to find out how many tasks(threads) available for the sake of my research whenever I initialize task scheduler automatically.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By default, the scheduler uses tbb::task_scheduler_init::default_max_threads() threads. The number of tasks is unlimited.
You can easily find this information in the User Guide and the Reference Manual.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page