The File on Fighting

  1. Pick any file anywhere ever created.  Make one up if you want.  List three pieces of "metadata" or "file attributes" about that file.
    _______________________________________________________
    _______________________________________________________
    _______________________________________________________

  2. When you click on a Macintosh icon associated with a data file, how does it know what application to run?



  3. Two types of sharing semantics are "open-close consistency", and "single image consistency".  There are lots more choices.  What type did the Bullet file system use?

  4. Why is there an "open" operation?  Why not just pass the filename to every read/write/etc call?



  5. Suppose your computer has 5000 users.  You want to allow 4,990 of them to access the file.  This would be annoyingly difficult in Unix.  What type of permission approach would make this easy to set up? (Hint:  Don't name a commercial product.  Use the name of a persmission scheme from the book.)

  6. What's a reasonable value for a timeslice in a process scheduler?  About right is good enough.

  7. In Unix, an open call returns an integer.  What does the analogous call return in Windows?

  8. I have a file of ABOUT 10,000,000 bytes.  It's called "/root/BigFile".  I want to add one byte (the letter "A") to the end without reading or writing the whole file.  Write me a few lines of C/C++ to do this.  You don't need to make a whole program, nor include files, and you don't need error checking.