CPSC 461: Copyright © 2002 Katrin Becker 1998-2002 Last Modified October 21, 2001 02:22 PM

BasicOps Review

SHORT ANSWER QUESTIONS

  1. [ 4 marks ] Distinguish between move mode and locate mode methods of buffering I/O and name one advantage of each.
  2. [ 4 marks ] Name two (2) reasons for buffering I/O ourselves in a program written on UNIX.
  3. [ 4 marks ] Suppose we have a list of records in memory and we want to see how many of those records also appear in a large file stored on disk. Should we start with:
    A) the first record in memory and check it against all the records in the file and then move on to the second etc.; OR
    B) the first record from the file and check it against all the records in memory, and then read the second record, etc.
    WHY?
  4. [ 5 marks ] Compare disk vs. RAM in terms of storage/access.
  5. [ 5 marks ] How does UNIX view files and how does this affect file access?

LONG QUESTIONS

  1. [worth 10 total] Compare and contrast move mode vs locate mode for buffering I/O. { limited credit will be given to information taken from the course notes or text book - this must be in your own words with more than just a re-wording of the given notes }


BackCPSC 461: Copyright © 2002 Katrin Becker 1998-2002 Last Modified October 21, 2001 02:22 PM