Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
6 Views

Cases where tbb task scheduler does not execute tbb::task::execute()

Jump to solution
Hello.

Recently, I have been having problems with the task scheduler as it doesn't seem to call the tbb::task I created and spawned via the task scheduler. Are there any conditions or cases when the task scheduler doesn't execute tbb::tasks at all. I initially assumed there were none but given this behavior, I just have to make sure. :)

By the way, my usage of the task tree is only up to level 1 deep. So, spawn tasks doesn't spawn other tasks.

I appreciate any input on this.

- Edit - It sees like it spawns fine but the problem was preemption.
0 Kudos

Accepted Solutions
Highlighted
Black Belt
6 Views
If you don't have available parallelism, a spawned task will only be executed when you wait for it.

View solution in original post

0 Kudos
1 Reply
Highlighted
Black Belt
7 Views
If you don't have available parallelism, a spawned task will only be executed when you wait for it.

View solution in original post

0 Kudos