CS FundamentalsHardGATE CS (PYQ pattern)
A RAID 0 array has 5 disks and a chunk size of 4 blocks (chunk k is on disk k mod 5, as the (k div 5)-th chunk on that disk). On which disk, and at which block offset within that disk, does logical block 137 live?
- A. disk 5, offset 25
- B. disk 4, offset 29
- C. disk 1, offset 24
- D. disk 4, offset 25
Correct answer: D. disk 4, offset 25
Chunk number = 137 div 4 = 34 (offset 1 in the chunk). Disk = 34 mod 5 = 4; it is chunk 6 on that disk, so the block offset is 6x4 + 1 = 25.
More Operating Systems questions
- An inode has 12 direct pointers, one single-, one double- and one triple-indirect pointer; blocks are 2048 bytes and pointers are 4 bytes…
- A parent creates a pipe, forks, and the child loops on read(fd[0], buf, 1) until it returns 0. The parent writes 3 bytes into fd[1] and…
- A system uses segmentation with paging (1024-byte pages). Segment table: seg 0: limit 3000, page frames [7, 2, 9]; seg 1: limit 1500…
- A process on a 4-level, 48-bit paging system (9 index bits per level, 4 KB pages, 4 KB page-table pages) maps three regions: 2 MB at…
- On a 4-level x86-64 style paging system (4 KB table pages, 512 eight-byte entries each, 2 MB pages are leaves at the third level), a…
- Polling a device costs a fixed 10% of the CPU (100,000 polls/s at 1 microsecond each) plus 0.5 microseconds of handling per event…