PREMIUM
Join our WhatsApp Channel
Daily MCQs, Past Papers & Jobs for PPSC, FPSC, CSS
Daily MCQs • Past Papers • Jobs for PPSC, FPSC, CSS
Join Channel

When does a deadlock occur in an operating system?

A. A process terminates unexpectedly
B. A process waits indefinitely for resources held by other processes
C. CPU is overloaded
D. Memory is insufficient
Correct Answer: B. A process waits indefinitely for resources held by other processes

Correct answer: A process waits indefinitely for resources held by other processes. Deadlock is processes waiting forever for resources others hold.

Background: Each holds one and waits for another, so none can move.

  • A process terminates unexpectedly: A process ending frees its resources, so no waiting.
  • CPU is overloaded: An overloaded CPU only slows programs.
  • Memory is insufficient: Low memory slows a system, but creates no circular waiting.

Did you know? Deadlock needs four conditions at once.

Memory trick: Dead lock: a waiting circle.

0 comments

Leave a Reply

Join Our WhatsApp Channel ×