CS FundamentalsHardGATE CS (PYQ pattern)
Eight disks can be arranged as RAID 1+0 (4 mirrored pairs, striped together) or as RAID 0+1 (two 4-disk stripe sets, the second mirroring the first; a stripe set is useless once any of its disks fails). Two different disks, chosen uniformly at random, fail before any rebuild. What are the probabilities of losing NO data for RAID 1+0 and for RAID 0+1?
- A. 6/7 and 6/7
- B. 3/7 and 6/7
- C. 6/7 and 3/7
- D. 4/7 and 3/7
Correct answer: C. 6/7 and 3/7
RAID 1+0 loses data only if both failures hit the same pair: 4 of C(8,2) = 28 pairs, so survival = 24/28 = 6/7. RAID 0+1 survives only if both failed disks lie in the same stripe set (the other set is intact): 2 x C(4,2) = 12 of 28 = 3/7. 4/7 is RAID 1+0's survival with three failures.
More Operating Systems questions
- Assume every fork() succeeds (it returns a non-zero value in the parent and 0 in the child) and each process prints X once when it reaches…
- Assume every fork() succeeds and output is unbuffered. int main(void) { int i; for (i = 0; i < 3; i++) { if (fork() == 0 && fork() == 0)…
- Banker's algorithm with two resource types (R1, R2). Allocation: P0 (0,2), P1 (1,4), P2 (0,4), P3 (6,1), P4 (0,2). Maximum: P0 (1,4), P1…
- Banker's algorithm, a single resource type, 6 processes P0..P5. Allocation: 1, 2, 2, 5, 3, 4. Maximum: 9, 3, 3, 7, 7, 9. Available = 1…
- The head is at cylinder 100 with pending requests 55, 58, 39, 18, 90, 160, 150, 38 and 184 (cylinders 0 to 199; no new requests arrive)…
- A machine uses 4-level paging, a TLB (10 ns lookup, done before every access) and 100 ns memory. On a TLB miss the walk first consults a…