work-stealing-queue icon indicating copy to clipboard operation
work-stealing-queue copied to clipboard

bug:some data in the queue cannot be obtained

Open dakeleblack opened this issue 1 year ago • 1 comments

When multiple threads call push, pop, and steal of WorkStealingQueue at the same time, some data in the queue cannot be obtained due to the maintenance of _top and _bottom

dakeleblack avatar Dec 27 '24 05:12 dakeleblack

The WorkStealingQueue is a single-producer multiple-consumer queue. Only one thread can call push and pop, while steal can be called by multiple threads.

tsung-wei-huang avatar Dec 27 '24 16:12 tsung-wei-huang