
24 Aug
2010
24 Aug
'10
2:51 p.m.
Oleg Grunin wrote:
I may be confused, but doesn't fifo have to spin (for(;;;)) also? Or do you mean that the tbb spin will call yield() after a certain number of tries?
There's a loop in fifo, true. But this loop is non-blocking in a sense that it has a property that if several threads enter this loop then at least one thread will make progress for sure. With a blocking spin-lock, it's possible for none of the threads to make any progress. Andy.