code_junkie

What is a deadlock?

Nov 10th, 2011
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. Thread 1 Thread 2
  2.  
  3. Lock1->Lock(); Lock2->Lock();
  4. WaitForLock2(); WaitForLock1(); <-- Oops!
Add Comment
Please, Sign In to add comment