GATE CS 2022 | Question 63
Operating Systems › File Systems & I/O · NAT · 2 marks · Answer: 153
- Question 63Operating Systemsnat2 marksFile systems A (contiguous) and B (linked) each store a 100-block file. A new block (data in memory) is inserted between the 50th and 51st block, with free blocks at the end and FCBs in memory. If are the disk accesses for A and B, then is __________.
Answer: 153
Solution
Answer: 153 To insert a block between the 50th and 51st block of a 100-block file: - Contiguous (A): shift blocks 51-100 (50 blocks) one position forward — read each and write each (), plus write the new block, plus ... giving disk accesses. - Linked (B): traverse to the 50th block and relink — accesses (read the 50th block, write the new block, write the updated pointer).
More GATE PYQ on File Systems & I/O
All GATE CS Operating Systems PYQ →Attempt GATE CS 2022 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →