-
Notifications
You must be signed in to change notification settings - Fork 0
Job queue
Hannes edited this page Apr 20, 2020
·
1 revision
They are aligned to the size of a cache line to avoid false sharing.
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.