Operating Systems
Disk scheduling and file systems
Ordering disk requests to cut head movement, and how files are stored.
In two minutes
One idea to a line
Seek time is the time to move the head to the right cylinder; scheduling tries to reduce total head movement.
SSTF always goes to the nearest request and can starve far ones. SCAN sweeps to one end and back, LOOK turns at the last request.
An inode holds a file's metadata and block pointers (not its name); the directory maps names to inodes.
A hard link is another name for the same inode and cannot cross file systems; a soft link is a file holding a path.
Contiguous allocation is fast to read but suffers external fragmentation; linked allocation has no fragmentation but slow random access; indexed allocation supports random access.
Slips people make here
Interviewers know them too
Forgetting that SCAN goes to the physical end of the disk.
Believing the file name is stored in the inode.
Thinking deleting a file with two hard links frees its blocks.
Your practice here
Not started
10 written questions, and 4 kinds of calculation that change every time
No answers yet