[CCC DEV] Question on atomic run queue operations in the CCSP wait-free scheduler.
z.zachwilliams at gmail.com
Fri Feb 17 21:55:13 GMT 2012
*TL;DR*: I have questions about the wait-free aspects of
Carl's CCSP scheduler, specifically on the window
I am working on porting (perhaps not the best word as
I am implementing from scratch) Carl's CCSP
work-stealing, wait-free scheduler to the tvm. I currently
have a library that performs work stealing with batches
however it uses pthread mutex to lock run queues, and
so it is not wait-free. Being that the next logical step is
to add wait-free-ieness, I have a few questions on how
this is done in CCSP.
When performing enqueueing and dequeueing on a
logical processor, how is the window represented in
the window state word?
I guess my confusion is in how the offset section ties in,
I am assuming it is used to determine if a batch being
enqueued belongs in the window, but is just the offset
representing where in the bit map the head (or tail) of the
run queue is? And how does the offset section of the
window state word correspond with the stored offset of
Thanks for your time and help.
I am trying to understand the run queue
algorithms in Carl's paper:
If you need/want to check it out, my code
is available at:
Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the developers