Practice
Solution
Step 1: Identify external fragmentation effect
External fragmentation means free memory is split into small noncontiguous blocks.Step 2: Understand system response
Compaction rearranges memory to create larger contiguous free blocks, enabling allocation.Step 3: Evaluate other options
Immediate rejection (B) ignores compaction; buddy system merges only buddies, not all blocks (C); internal fragmentation (D) is unrelated to external fragmentation.Final Answer:
Option D -> Option DQuick Check:
Compaction is the standard response to external fragmentation [OK]
- Assuming buddy system merges all free blocks automatically
- Believing internal fragmentation can solve external fragmentation
- Thinking system rejects requests without compaction
Solution
Step 1: Identify the event
The process requests I/O while Running, so it must wait for I/O completion.Step 2: State transition on I/O request
Process moves from Running to Waiting state to wait for I/O.Step 3: After I/O completes
Process moves from Waiting to Ready state, waiting for CPU scheduling.Step 4: CPU scheduling
Process moves from Ready to Running when CPU is allocated.Final Answer:
Option A -> Option AQuick Check:
Running -> Waiting (I/O request), Waiting -> Ready (I/O done), Ready -> Running (CPU assigned) [OK]
- Confusing Ready and Waiting states order
- Assuming process goes directly from Waiting to Running
- Skipping the Ready state after I/O completion
Solution
Step 1: Recall Round Robin preemption
When a process's time quantum expires, it is preempted to ensure fairness and allow other processes CPU access.Step 2: Understand queue management
The preempted process is placed at the end of the ready queue to wait for its next turn.Step 3: Analyze incorrect options
The process continues running until it voluntarily yields the CPU contradicts RR's preemption principle. The process is terminated and removed from the system is incorrect because process termination depends on completion, not quantum expiry. The process is moved to the waiting queue for I/O is incorrect unless the process requests I/O, which is unrelated to quantum expiration.Final Answer:
Option A -> Option AQuick Check:
Quantum expiry -> preempt -> enqueue at ready queue's end.
- Thinking process runs until completion ignoring quantum
- Confusing preemption with process termination
- Assuming process moves to waiting queue without I/O
Solution
Step 1: Understand mutual exclusion
It requires that some resources be non-shareable, meaning only one process can use them at a time.Step 2: Analyze why eliminating mutual exclusion for all resources is impractical
Eliminating mutual exclusion for all resources is impossible because some resources (like printers) inherently cannot be shared.Step 3: Evaluate other options
Mutual exclusion means that at least one resource must be held in a non-shareable mode correctly defines mutual exclusion. Mutual exclusion is necessary for deadlock but not sufficient alone correctly states it is necessary but not sufficient. Mutual exclusion applies only to resources that cannot be simultaneously used by multiple processes correctly limits mutual exclusion to non-shareable resources.Final Answer:
Option B -> Option BQuick Check:
Mutual exclusion cannot be eliminated for all resources; some must be exclusive.
- Thinking mutual exclusion can be removed entirely
- Confusing necessity with sufficiency
- Misapplying mutual exclusion to shareable resources
Solution
Step 1: Understand paged segmentation
Address translation involves two steps: segment table lookup to get page table base, then page table lookup to get frame.Step 2: Analyze The need to first translate segment number to a page table, then translate page number to frame number
This correctly describes the two-level translation process.Step 3: Analyze The inability to handle variable-sized segments due to fixed page sizes
Variable-sized segments are handled by paging within segments; this option is incorrect.Step 4: Analyze The elimination of external fragmentation but increased internal fragmentation
Fragmentation trade-offs are more complex; this option oversimplifies and is incorrect.Step 5: Analyze The requirement that all segments must be the same size
Segments can vary in size; this option is false.Final Answer:
Option A -> Option AQuick Check:
Paged segmentation requires hierarchical translation: segment -> page table -> frame.
- Assuming paged segmentation removes variable segment sizes
- Thinking all segments must be uniform size
- Confusing fragmentation effects
