- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a question regarding recently added support for TBB thread number limitation in accordance with process affinity mask. IIUC, if the process is bound to a single core, TBB will not create any worker threads. If that is the case, will spawned tasks be ever executed? Note that in my case the main thread doesn't wait for the tasks to finish, it proceeds with other things. Instead, each task upon its completionreports back to the main thread through our private task scheduler, which runs in the main thread.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you enqueue, you don't have to wait, and at least one worker thread will be created even on a single-core system.
If you spawn, you will have to wait at some point, and ona single-core system your spawned tasks will only be executed at that time.
It seems like you want enqueue here.
If you spawn, you will have to wait at some point, and ona single-core system your spawned tasks will only be executed at that time.
It seems like you want enqueue here.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you enqueue, you don't have to wait, and at least one worker thread will be created even on a single-core system.
If you spawn, you will have to wait at some point, and ona single-core system your spawned tasks will only be executed at that time.
It seems like you want enqueue here.
If you spawn, you will have to wait at some point, and ona single-core system your spawned tasks will only be executed at that time.
It seems like you want enqueue here.

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