7 ms·
The multiple-consumer version looks extremely similar, if not identical, to the Go [1] and Tokio [2] local work-stealing queues. These do a bit more though, as
by binarycoffee 4y ago
The multiple-consumer version looks extremely similar, if not identical, to the Go [1] and Tokio [2] local work-stealing queues.
These do a bit more though, as they also allow batch stealing operations.
[1] https://github.com/golang/go/blob/master/src/runtime/proc.go#L5754 https://github.com/golang/go/blob/master/src/runtime/proc.go...
[2] https://tokio.rs/blog/2019-10-scheduler#a-better-run-queue https://tokio.rs/blog/2019-10-scheduler#a-better-run-queue