Mutex « Threads « Ruby






1.Classic deadlock: two threads and two locks
2.Use mutex to lock