CS FundamentalsHardGATE CS · TCS Digital
A file system uses 4 KB blocks and 4-byte block pointers. An inode has 12 direct pointers, one single-indirect and one double-indirect pointer (no triple). What is the maximum file size?
- A. 4 GB
- B. 4 GB + 4 MB + 48 KB
- C. 4 GB + 4 MB
- D. 1 GB + 4 MB + 48 KB
Correct answer: B. 4 GB + 4 MB + 48 KB
Direct: 12 x 4 KB = 48 KB. Single indirect: 1024 x 4 KB = 4 MB. Double indirect: 1024 x 1024 x 4 KB = 4 GB. Total 4198448 KB = 4 GB + 4 MB + 48 KB.
More Operating Systems questions
- How many page faults occur under the Optimal replacement policy with 3 frames (initially empty) for the reference string 7, 0, 1, 2, 0, 3…
- A system has 48-bit virtual addresses, 4 KB pages and 8-byte page-table entries. The page table is organised as a multi-level tree in…
- Deadlock detection with 3 resource types, Available = (0, 0, 0). Allocation: P0 (0,1,0), P1 (2,0,0), P2 (3,0,3), P3 (2,1,1), P4 (0,0,2)…
- A RAID 5 array has 6 disks of 4 TB each. What are its usable capacity and the number of disk I/Os needed to perform one small random write…
- The page reference string is 1, 2, 1, 3, 4, 1, 2, 5, 2, 1. Using a working-set window of the last 5 references, what is the size of the…
- Round Robin with quantum 3 ms is used for P1 (arrival 0, burst 5), P2 (1, 3), P3 (2, 8), P4 (3, 2) and P5 (4, 4). A process arriving…