CS 3733 Operating Systems, Spring 2008 Assignment 1 Comments
This assignment was graded on the basis of 30 points.
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.
After each call to malloc you should check for errors.
Watch out for integer division when calculating averages.
When returning from main (or calling exit) the return value
should not be negative.
Your tests should include at least one test in which SJF and PSJF differ.
Programs (and output) should not be printed with a proportional font.
Use the correct headings in the main program. The output should be labeled
FCFS, SJF, etc., not Part 1, Part 2, ... .
If implemented efficiently, the code is not too long.
PSJF and SJF are almost identical.
FCFS is a special case of RR.
What is wrong with 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";
}