Deadlock

Read these lecture notes.