CS FundamentalsHardGATE CS
Segment table (base, length): S0 (219, 600), S1 (2300, 14), S2 (90, 100), S3 (1327, 580), S4 (1952, 96). What are the physical addresses for (0, 430), (1, 10), (2, 500), (3, 400), (4, 112)? ('trap' = addressing error)
- A. 649, 2310, 590, 1727, 2064
- B. 649, trap, trap, 1727, trap
- C. 649, 2310, trap, 1727, 2048
- D. 649, 2310, trap, 1727, trap
Correct answer: D. 649, 2310, trap, 1727, trap
Valid only if offset < length: 219+430 = 649; 2300+10 = 2310; 500 ≥ 100 traps; 1327+400 = 1727; 112 ≥ 96 traps. Adding base and offset without the limit check gives 590 and 2064.
More Operating Systems questions
- How many times are 'c' and 'p' printed in total? (Every fork() succeeds.) c int main() { for (int i = 0; i < 3; i++) { if (fork() == 0)…
- How many times is each letter printed? (Every fork() succeeds.) c int main() { if (fork() == 0) { if (fork() == 0) printf("A"); else…
- What is the sum of the values printed by all processes? (Every fork() succeeds.) c int main() { int n = 0; for (int i = 0; i < 3; i++) {…
- Disk cylinders 0–199, head at 50 moving TOWARD 0. Requests: 176, 79, 34, 60, 92, 11, 41, 114. What is the total head movement under SCAN…
- Disk cylinders 0–199, head at 50. Requests: 176, 79, 34, 60, 92, 11, 41, 114. Under SSTF, in what order are the requests served?
- A disk rotates at 10,000 RPM with 600 sectors per track. Seek time = 3 ms average. A request reads 300 sectors that lie on one track…