CS FundamentalsEasyGATE CS (PYQ pattern)
Which of the following statements about read-copy-update (RCU) are correct? I. Readers traverse the data structure without taking locks. II. A writer must wait for a grace period before freeing the old version of an updated object. III. A concurrent reader may see either the old or the new version of an object, but never a partially updated one. IV. RCU is best suited to workloads dominated by updates.
- A. I and II only
- B. II, III and IV only
- C. I, II and III only
- D. I and IV only
Correct answer: C. I, II and III only
RCU optimises read-mostly data: readers are lock-free, writers publish a new copy atomically and reclaim the old one after all pre-existing readers finish. IV is false: update-heavy loads pay copying and grace-period costs.
More Operating Systems questions
- Which of the following statements about fork() with copy-on-write are correct? I. Right after fork, parent and child map the same physical…
- Under first-fit, the fifty-percent rule says that with N allocated blocks there are about N/2 holes. In a measured system the average hole…
- A machine has 48-bit virtual addresses, 16 KB pages and 8-byte page-table entries. Every page-table node must fit in one page, lower…
- Two processes bounce a 1-byte message through a pair of pipes: 100,000 round trips take 1.2 s, and each round trip contains two context…
- MFU replacement with 3 frames (initially empty): the victim is the resident page with the LARGEST reference count since it was loaded…
- FIFO page replacement is run on the string 6, 1, 7, 2, 7, 2, 1, 5, 1, 1, 7, 5, 3, 1, 1, 7, 4, 5, 3, 4 (memory initially empty) with each…