Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

All tbb works start busy spinning

Michael_Henosn
Beginner
457 Views
Hey, rarely tbb will get into a state where every single thread starts spin waiting, and uses 100% cpu for each core. The call stack for each thread is:

00000000`6ba7fae8 00000000`76d26e7a ntdll!ZwYieldExecution+0xa
00000000`6ba7faf0 00000001`80010eb1 kernel32!SwitchToThread+0xa
00000000`6ba7fb20 00000001`80010271 tbb!GenericScheduler::get_task+0x2c1
00000000`6ba7fb80 00000001`8000ff36 tbb!IntelSchedulerTraits>::local_wait_for_all+0x331
00000000`6ba7fc20 00000001`80015a6b tbb!IntelSchedulerTraits>::wait_for_all+0x26
00000000`6ba7fc60 00000000`02a9a6a4 tbb!UnpaddedArenaPrefix::process+0x1b
00000000`6ba7fc90 00000000`72e82fdf irml!server_thread::thread_routine+0x164
00000000`6ba7fd50 00000000`72e83080 msvcr90!endthreadex+0x47
00000000`6ba7fd80 00000000`76d2be3d msvcr90!endthreadex+0xe8
00000000`6ba7fdb0 00000000`76e66a51 kernel32!BaseThreadInitThunk+0xd
00000000`6ba7fde0 00000000`00000000 ntdll!RtlUserThreadStart+0x21
This is on TBB 2.2...
Has anyone seen this behavior or know how this could possibly happen? Thanks,
Mike
0 Kudos
1 Reply
Alexey-Kukanov
Employee
457 Views
Is this reproducible with recent TBB updates? Can you provide a test that shows the behavior?
0 Kudos
Reply