CS 3733 Operating Systems, Spring 2010 Assignment 1 Comments
- Look through your assignment for comments (in red) even if you got
full credit.
- 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.
Do not use heavy-duty staples for a small number of sheets.
- If you can determined the output that your program should generate,
then check to see that it produced the correct output.
It is best to write down what you think the output should be before
running the program.
- After each call to malloc you should check for errors.
- Watch out for integer division when calculating averages.
- The fcfs function should not assume any maximum values for the parameters.
You only need to assume that the string parameters are referencing
memory that is large enough to hold the strings generated.
It is not necessary to use additional arrays, but if you do make sure that
- You make them big enough to hold the strings.
You cannot used fixed size arrays.
- If you use malloc, you should free the memory
before returning.
- Don't fill an array with 0's just because you are too lazy to put in
a string terminator.
- fcfs should not assume that the s1 and s2 arrays are filled with 0's.
- fcfs cannot fill these with 0's because it does not know how large these
buffers are, only that they are large enough to hold the result.
- fcfs should not do any printing.
- In some cases I did not check that your strings were appropriately
terminated. This
might cause problems in assignment 2.
- Print code and output with a fixed point font, not a proportional one.
If your output looks like this I cannot tell if it is correct:
RRRRRRRRwwwwwwwRRR
rrrrrrrrRRRRRRwwwrRR
0 9 4.5 0.95000
It should look like this so that I can see how the two strings line up:
RRRRRRRRwwwwwwwRRR
rrrrrrrrRRRRRRwwwrRR
0 9 4.5 0.95000
- Do not return negative values from main.
Comment on collaboration.
What you hand in should be your own work.
You may talk to others about how to do the assignment
or get help with bugs.
You may not work on the programs in a group.
You may not copy another student's code.