What a deadlock actually is
Two threads stop making progress. Thread A holds lock 1 and wants lock 2. Thread B holds lock 2 and wants lock 1.
What has happened?
Two threads stop making progress. Thread A holds lock 1 and wants lock 2. Thread B holds lock 2 and wants lock 1.
What has happened?