>is this how its susposed to work?

yes. the queued locks are associated with data, not with a process:
one process can acquire the lock and another release it.
that probably isn't used often at all, but it's the best way to think of it.
spin locks have a tighter link with a process because (after all)
they're intended for short sections of code without rescheduling.

Reply via email to