DEADLOCKS
How is deadlock detected