CS 325
Extra credit, due May 4, 2012 at noon
Each problem is worth eight points. Show all work.
if at least one page has not been modified replace the least recently used unmodified page; else replace the least recently used page /* all have been modified */This algorithm replaces unmodified pages in preference to modified ones.
Give a reference string which illustrates that this replacement algorithm is not a stack algorithm. Mark modifying references with an asterisk to distinguish them from non-modifying references. Show the memory contents at the end of the reference for two values of (the number of page frames) to illustrate the absence of memory inclusion. There are quite short reference strings (six references) which will do the trick.
Consider a system where class accounts are organized so that the instructor and each student has a directory. A user logged onto the instructor account can access any files in the student accounts, despite the permissions associated with them. Among other things, this allows the instructor to run a grading program, executing each student's program against a common data file.
Given the protection scheme described above, describe how a class account would be organized. In particular, describe how the instructor can run the grading program without having to know the password associated with each student's directory.