- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, guys,
One of SDK, which I use, initialized the tbb internally at its startup.
I wan to reset the number of threads of TBB to a large value.
But tbb::task_scheduler_init::initialize( int number_of_threads) can't help me do this update.
Is there any other way to do it?
Thanks!
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why? (rhetorical question, too short to post by tself)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to create some tasks which live in whole process life time, and they can execute concurrently.
If I didn't enlarge the thread count, one task is holding all the time until the other task execution exit.
_TBB_Yield() could help on this?
Thanks!
If I didn't enlarge the thread count, one task is holding all the time until the other task execution exit.
_TBB_Yield() could help on this?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know what you plan to do with those, but you should probably use tbb_thread instead. Tasks are suitable (but then also preferable) only for finite amounts of CPU-bound work without required concurrency (the program should also work with a single thread).
Don't use __TBB_Yield() in your programs.
Don't use __TBB_Yield() in your programs.
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