Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of the following is NOT a valid deadlock prevention scheme ?

  • A.Release all resources before requesting a new resource.
  • B.Number the resources uniquely and never request a lower numbered resource than the last one requested.
  • C.Never request a resource after releasing any resource.
  • D.Request that all required resources be allocated before execution.

Answer: C

The scheme that is NOT a valid prevention scheme is Never request a resource after releasing any resource.

Deadlock prevention works by breaking one of its necessary conditions. Releasing all held resources before requesting a new one, or requesting everything before execution, breaks hold and wait. Numbering resources and requesting them only in increasing order breaks circular wait.

Forbidding requests after any release breaks none of the conditions: a process can still hold some resources while waiting for others, and a cycle of such waits can still form.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.