CS FundamentalsModerateGATE CS
Which file-allocation method supports BOTH efficient direct access and no external fragmentation?
- A. Indexed allocation
- B. Contiguous allocation
- C. Linked allocation
- D. Linked allocation with the FAT kept only on disk
Correct answer: A. Indexed allocation
Contiguous gives direct access but suffers external fragmentation; linked has no external fragmentation but needs sequential traversal (a FAT in memory helps). Indexed gives both via the index block.
More Operating Systems questions
- A directory with 10,000 entries is stored as an unsorted linear list. File creation must check that the name does not already exist. Which…
- A file system uses a buffer cache with write-back. The system crashes right after a program's write() returned. Which statement is correct?
- Which of these is the correct reason that the Unix rename(old, new) within one file system is widely used to update a file safely (write a…
- A process opens the same file twice with two separate open() calls, getting fd 3 and fd 4, and also calls dup(3) to get fd 5. It then…
- After fork(), a parent and child both write to a file descriptor that was opened before the fork, without OAPPEND. Why do their writes not…
- Which statement about access-control lists (ACLs) versus capability lists is correct?