CS 3733 Operating Systems, Spring 2008 Assignment 4 Comments
- This assignment was graded on the basis of 30 points.
- Grading:
3 points for Part 5
5 points for Part 4
6 points for Part 3
If you do not get Part 2 working, you received less than half credit
and will need this as a starting point for Assignment 5.
- On the second try of findFactors1, the max must go up to
sqrt(n) rather than sqrt(n)/2.
- Actually, if n1 is the original value and n is the
current one,
we must go up to the smaller of sqrt(n1)/2 and n, but once
you get up to sqrt(n), there will be at most one factor left which
you will find at the end.
- Neither 323 or 437 is prime.
- When sending a value through the pipe, it is more efficient to send the
raw value (sizeof(long long) bytes) then converting to a string and then
converting back on the other end.
- When reading from a pipe, you may not get everything that was written.
- You can use readblock from the restart library.