Subj : Re: Challenge: Multithreading & Synchronization To : comp.programming.threads From : Sergei Organov Date : Thu May 19 2005 03:11 pm "Uenal Mutlu" <520001085531-0001@t-online.de> writes: [...] > > > "Uenal Mutlu" wrote > > >> /* > > >> Here's my solution. > > >> > > >> It applies the deadlock theorem, and by this it is deadlock-free, and > > >> everything is also thread-safe. > > >> > > >> The right order of the locks is obviously important (it follows the > > >> deadlock theorem). Do you realize that the lock order in your solution matches more simple rule of always locking in the same order? What's so important about your much more complex "deadlock theorem" then? -- Sergei. .