CS FundamentalsVery hardCapgemini · Cognizant GenC
A segment table holds (base, limit): segment 0 = (1200, 700), segment 1 = (4000, 300), segment 2 = (3000, 500). Which logical address (segment, offset) translates to physical address 3499 without a trap?
- A. (1, 300)
- B. (0, 2299)
- C. (2, 500)
- D. (2, 499)
Correct answer: D. (2, 499)
Segment 2: 3000 + 499 = 3499 and 499 < 500, so it is valid. (0, 2299) also adds up to 3499 but its offset exceeds segment 0's limit of 700, so it traps; (1, 300) maps to 4300 and (2, 500) to 3500.
More Operating Systems questions
- A disk has an average seek time of 8 ms, rotates at 7,200 RPM and transfers data at 100 MB/s. Using the average rotational latency (half a…
- For the reference string 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6 with 4 frames (initially empty), how many more page…
- In the standard five-state process model, which transition can NEVER happen directly?
- The data structure in which the OS keeps a process's program counter, register contents, state and open-file list is called the:
- Short jobs stuck waiting behind one long CPU-bound job is called the convoy effect. It is characteristic of which scheduling algorithm?
- A system spends most of its time swapping pages in and out and does very little useful work. This condition is called: