Bird
Raised Fist0

Considering the five-state process model, what is the space complexity impact of maintaining the Process Control Block (PCB) for all processes in the system?

medium🪤 Complexity Trap Q6 of Q15
Operating Systems - Process State Machine - Five-State Model
Considering the five-state process model, what is the space complexity impact of maintaining the Process Control Block (PCB) for all processes in the system?
AO(n), where n is the number of processes, since each process has one PCB.
BO(1), because PCBs are reused and shared among processes.
CO(n²), due to storing all possible state transitions explicitly.
DO(log n), as PCBs are stored in balanced trees.
Step-by-Step Solution
Solution:
  1. Step 1: Understand PCB storage

    Each process requires its own PCB to store state and context.
  2. Step 2: Total space scales linearly

    With n processes, total PCB storage is O(n).
  3. Step 3: PCBs are not shared or reused

    Each process has a unique PCB, so O(1) is incorrect.
  4. Step 4: State transitions are not stored explicitly per process

    O(n²) is an overestimate.
  5. Step 5: Data structures like trees affect access time, not PCB space

    O(log n) is irrelevant here.
  6. Final Answer:

    Option A -> Option A
  7. Quick Check:

    One PCB per process -> linear space [OK]
Quick Trick: PCB space grows linearly with process count [OK]
Common Mistakes:
MISTAKES
  • Assuming PCBs are shared or reused
  • Confusing access time with space complexity
  • Overestimating space for transitions
Trap Explanation:
PITFALL
  • Candidates confuse data structure access complexities with PCB space requirements.
Interviewer Note:
CONTEXT
  • Evaluates understanding of resource usage in process management.
Master "Process State Machine - Five-State Model" in Operating Systems

2 interactive learning modes - each teaches the same concept differently

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Operating Systems Quizzes