CS FundamentalsHardProduct-company MCQ pattern
Reference string (times 1 to 14): 3, 5, 3, 1, 4, 4, 2, 1, 1, 6, 6, 6, 2, 5. With working-set window Δ = 4 references, what is the working set at time 12 (i.e. just after the 12th reference)?
- A. {6}
- B. {1, 6}
- C. {1, 2, 6, 4}
- D. {2, 1, 6}
Correct answer: B. {1, 6}
The window covers references 9–12: 1, 6, 6, 6. Distinct pages = {1, 6}, so the working-set size is 2. Including reference 13 (page 2) uses the wrong window.
More Operating Systems questions
- Processes: A (arrival 0, burst 5), B (arrival 1, burst 3), C (arrival 2, burst 8), D (arrival 3, burst 6). Priorities: A = 3, B = 1, C =…
- Cylinders 0–199, head at 72 moving towards higher cylinders. Requests: 110, 25, 160, 47, 130, 8, 95, 185. Under C-LOOK, counting the jump…
- In the first readers–writers problem (readers get priority: a reader never waits if the resource is already being read), which problem can…
- When is a spinlock (busy-waiting lock) preferable to a blocking lock?
- Modern fork() implementations use copy-on-write. Which statement is correct?
- Segment table (base, limit): S0 (1400, 600), S1 (6300, 400), S2 (4300, 300), S3 (3200, 1100). What happens for logical addresses (2, 120)…