CS FundamentalsModerateGATE CS · TCS NQT
A segment table has: segment 0 base 1200, limit 500; segment 1 base 3000, limit 150; segment 2 base 800, limit 300. Which logical address (segment, offset) maps to a valid physical address, and what is it?
- A. (1, 160) → 3160
- B. (0, 500) → 1700
- C. (2, 299) → 1099
- D. (2, 300) → 1100
Correct answer: C. (2, 299) → 1099
An offset is legal only if it is less than the limit. (2, 299) gives 800 + 299 = 1099. (1, 160) and (0, 500) and (2, 300) all reach or pass the limit, so they trap.
More Operating Systems questions
- A process with 100 private writable pages calls fork() and the system uses copy-on-write; a page is copied only if it is still shared when…
- Three periodic tasks with deadline = period have (C, T) = (1, 4), (2, 6) and (3, 12), scheduled by rate-monotonic priority. Which…
- A low-priority task L holds a mutex needed by high-priority task H. A medium-priority task M, which does not need the mutex, becomes ready…
- In a monitor with Mesa (signal-and-continue) semantics, why must a consumer check its condition with while (count == 0) wait(notEmpty)…
- Five dining philosophers each pick up the left fork and then the right fork. Which change removes the possibility of deadlock without a…
- A user creates file f, makes a hard link h to it and a symbolic link s to f. Then f is deleted and a NEW file named f is created with…