GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2022

GATE 2022 · CS · NAT · 2 marks · Operating System › File Systems

GATE 2022 Computer Science and Information Technology question: Consider two files systems A and B, that use contiguous allocation and linked…

Consider two files systems and , that use contiguous allocation and linked allocation, respectively. A file of size 100 blocks is already stored in A and also in B. Now, consider inserting a new block in the middle of the file (between 50th and 51st block), whose data is already available in the memory. Assume that there are enough free blocks at the end of the file and that the file control blocks are already in memory. Let the number of disk accesses required to insert a block in the middle of the file in and are and , respectively, then the value of is __________.

Show answer

Official answer: 153

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion