I have heard it suggested that if every thread in a program takes
whatever locks it needs to take in sorted order, it is guaranteed that
deadlock can never occur.
Is this correct? And does anybody have a reference I can site?
Post a reply to this message
|