previous | start | next

Lock Hierarchies

If many mutexes are to be used, they could be arranged in levels. Then if a thread is holding a lock at level k, it should not be allowed to request another lock at level k or smaller.

This will also prevent deadlock over the mutex resources.



previous | start | next