







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Advance Operating Systems is about internal structure of your computer. It discuss concepts of threading, memory management, security, paging, process scheduling, deadlock, trojan and cache. This lecture is part of lecture series for course. It includes: Disk, Interaction, Physical, Structure, Components, Requests, SCSI, Interface, Logical, Blocks, Write, Scheduling
Typology: Slides
1 / 13
This page cannot be seen from the preview
Don't miss anything!








Disk reads/writes in terms of sectors, not bytes read/write single sector or adjacent groups How to write a single byte? “Read-modify-write” read in sector containing the byte modify that byte write entire sector back to disk key: if cached, don’t need to read in Sector = unit of atomicity. sector write done completely, even if crash in middle (disk saves up enough momentum to complete) larger atomic units have to be synthesized by OS
Files can be lost if directory destroyed or crash happens before link can be set New twist: FFS can find lost inodes Facts: FFS pre-allocates inodes in known locations on disk Free inodes are initialized to all 0s. So? Fact 1 lets FFS find all inodes (whether or not there are any pointers to them) Fact 2 tells FFS that any inode with non-zero contents is (probably) still in use. fsck places unreferenced inodes with non-zero contents in the lost+found directory