Multiple choice

The situation where all threads wait for an exclusive lock on an object and none of the threads executes is called

  1. memory leak

  2. deadlock

  3. garbage collection

  4. encapsulation

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Deadlock is the situation in which all processes wait for one another and no one gets an exclusive lock.