Skip to content

Job queue

Hannes edited this page Apr 20, 2020 · 1 revision

Queue

Fibers

Alignment

They are aligned to the size of a cache line to avoid false sharing.

Using fibers

Worker threads/fibers need to acquire and release fibers concurrently and for that there is need for an "MPMC" data struct. As I have not yet come up with any great idea for this other than the queue structure (the others worked in the same way, anyway) it is probably suitable to use the queue for these, to.

Clone this wiki locally