x86 lock system

i've got a few questions about creating a lock system (for multithreaded programs) specifically a mcs lock implementation,

how would i go about creating a linked list and a pointer to a node on the list
(nodes represent the threads waiting for the lock while the pointer to a node represents the node that has possession of the lock)

any suggestions would be appreciated,

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!