CS 110 Homework Assignment 3
Due: Saturday 3 March, 9PM

  1. Points 3, S&G, 2.5, pg 46
  2. Points 3, S&G, 2.7, pg 46
  3. 2-1 from Paul with the following changes:
    write only a version with all appropriate nops
  4. 2-3 from Paul with the following changes:
    write only a version with all appropriate nops
  5. Assume that you are the OS architect and must implement semaphores on a SPARC. Write the enter_region & exit_region instructions in SPARC assembly. (don't run them, just code them) For further clarification, look back at the slide handed out concerning, TSL. Basically, rewrite that code in Sparc assembly language. Obviously the variable 'Lock' is some part of the OS that is easily found by these routines.

Notes:

Where to Turn in:

The plastic bins outside Mike's office, 249 Olin.

Last modified February 15, 01 by mike@cs.hmc.edu