CS FundamentalsHardProduct-company MCQ pattern
In a segmentation scheme with segment table entries (base, limit), a process issues a logical address (segment 2, offset 5000). The segment table shows segment 2 has base 10000 and limit 4096. What happens?
- A. Physical address 15000 is generated successfully
- B. A segmentation fault/trap occurs, because the offset 5000 exceeds the segment's limit of 4096
- C. Physical address 10000 + 4096 is generated, clipping the offset to the limit
- D. The offset wraps around modulo the limit, giving physical address 10904
Correct answer: B. A segmentation fault/trap occurs, because the offset 5000 exceeds the segment's limit of 4096
Segmentation hardware checks offset < limit before adding to base. Here offset 5000 > limit 4096, so the memory-management unit raises a protection fault instead of generating any physical address; it does not clip or wrap silently.
More Operating Systems questions
- A system uses a two-level page table: a 10-bit outer index, a 10-bit inner index, and a 12-bit offset, for a 32-bit virtual address. What…
- A 36-bit virtual address space uses 4 KB pages and single-level page table entries of 8 bytes each. What is the total size of the page…
- An inverted page table has one entry per physical frame (not per virtual page), shared across all processes, each entry tagged with the…
- Belady's anomaly refers to the surprising fact that:
- The convoy effect in FCFS scheduling describes a situation where:
- In preemptive SRTF, a running process can be interrupted the instant a newly arrived process has a strictly smaller remaining burst. Why…