Multiple choice

Which of these situations may lead to a deadlock?

  1. Forgotten password

  2. Files accessed in read only mode

  3. Waiting processes requesting resources held by other waiting processes

  4. A process requesting resources after releasing all previously held resources

  5. A process being alocated all or none of the resources needed by it.

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

A process requests resources, if the resources are not available at that time, the process enters a wait state. Waiting processes may never again change state because the resources they have requested are held by other waiting processes. This situation is called a deadlock.