CS 3733 Operating Systems, Fall 2007 Assignment 1 Comments

  1. A single staple in the upper left corner will do.
    The main lab has a variety of staplers that you can use.
    Please do not use any other type of binding.
  2. After each call to malloc you should check for errors.
  3. Watch out for integer division when calculating averages.
  4. When returning from main (or calling exit) the return value should not be negative.
  5. Use the correct headings in the main program. The output should be labeled FCFS, SJF,< etc., not Part 1, Part 2, ... .
  6. If implemented efficiently, the code is not too long.
    PSJF and SJF are almost identical.
    FCFS is a special case of RR.
  7. What is wrong sith the following solution to Part 0:
        void part0(char *s1, char *s2, int x1, int y1, int z1,
                            int x2, int y2, int z2) {
           s1 = "RRwwwwwRRRRRRRRR";
           s2 = "rrRRRRwwwwwwwwrrRRRRRRR";
        }
    
  8. What is wrong with the following:
          rrrrrrRRRRRRRRwwwwwwwRRR
          RRRRRRwwwRR
    
  9. What is wrong with the following:
          rrrrrrRRRrrRrrRRRRwwwwwwwRRR
          RRRRRRwwwRR
    
  10. Answers for the tests are available below:
    Test 1
    Test 2
    Test 3
  11. Solutions for FCFS and RR can be found here.