cs341 Lecture Notes Spring 2002 Week 11, Thursday For today you should have: 1) read the next section of the semaphore book 2) skimmed the Fast File System paper (notes 3) read Nutt, Sections 15.1 and 15.3 4) met with your partner for homework 7 For next time you should: 1) solve the Smokers problem 2) continue work on homework 7 Homework 7 ---------- Approach this kind of investigation from two directions: 1) what do we want to find out (and what tools do we need)? 2) what tools do we have (and what can we find out with them)? Tools: Read Chapter 14 of the Cow Book. 1) ioloop.c from hw04 variations: with and without fsync This example demonstrates unbuffered I/O 2) write a similar program with buffered I/O (see page 211) 3) experiment with fseek or fsetpos (see handout from Stevens) How can we use fseek to distinguish between linked and indexed block management? Build infrastructure early so that you have time to think about how to use it. On the other hand... you might not know what infrastructure you want until you get into it!