Operating Systems: Process States In a multitasking operating system, a task (process/thread) that is in the blocked state is best described as:

Difficulty: Easy

Correct Answer: Waiting for some temporarily unavailable resource

Explanation:


Introduction / Context:
Modern operating systems model program execution using process states such as new, ready, running, blocked (or waiting), and terminated. Understanding these states is crucial for debugging, performance tuning, and scheduling analysis.


Given Data / Assumptions:

  • Single or multi-CPU system with a scheduler and run queues.
  • Blocked tasks are not consuming CPU but are part of the system state machine.
  • Resources include I/O completion, locks, semaphores, timers, and interprocess messages.


Concept / Approach:
A blocked process cannot make progress until an external event occurs. Unlike a ready process, it should not be in the run queue. When the awaited event happens, the process transitions to ready and later to running when scheduled.


Step-by-Step Solution:
Identify resource dependency (e.g., disk I/O, network I/O, mutex).Process calls a blocking API or is descheduled upon contention.OS marks it blocked/waiting; it leaves the run queue.Upon event completion, OS transitions it to ready; the scheduler may then dispatch it.


Verification / Alternative check:
Use system tools (e.g., ps/top with state flags, Windows Resource Monitor) to observe threads waiting on I/O or synchronization primitives and note that they do not consume CPU in the interim.


Why Other Options Are Wrong:
Executable/ready (Option A) and running (Option B) contradict the waiting nature.Option C is incorrect; blocked processes are not in the run queue until the wait ends.“None of the above” is incorrect because Option D exactly defines blocked.


Common Pitfalls:

  • Confusing ready with blocked; only ready competes for CPU.
  • Misdiagnosing CPU bottlenecks when the system is actually I/O-bound with many blocked tasks.


Final Answer:
Waiting for some temporarily unavailable resource.

More Questions from Operating Systems Concepts

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion