M

Mr. Dubey • 100.64K Points
Coach Computer

Q. Before proceeding with its execution, each process must acquire all the resources it needs is called

  • (A) hold and wait
  • (B) No pre-emption
  • (C) circular wait
  • (D) starvation
  • Correct Answer - Option(A)
  • Views: 89
  • Filed under category Computer

Explanation by: Mr. Dubey

Hold and wait is a condition in deadlock where a process holds resources already allocated to it while waiting to acquire additional resources.

  • However, the phrase "each process must acquire all the resources it needs before proceeding" is actually a strategy to prevent hold and wait, not hold and wait itself.

But among the options given, the condition closest to the scenario described is hold and wait because it involves resource allocation before execution continues.

Other options:

  • No pre-emption means resources cannot be forcibly taken away.
  • Circular wait is a condition where processes form a cycle waiting for each other.
  • Starvation is when a process waits indefinitely for resources.

If you want the exact term for "acquire all needed resources before execution," it's called the "all-or-none" or "resource allocation without hold and wait" strategy, but that’s not in the options.

So, from the choices, (A) hold and wait fits best.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics