CS 3733 Operating Systems, Fall 2005 Assignment 4 Comments
- This assignment was graded on the basis of 30 points.
- The server should process one line for each connection.
The client should make a new connection for each request.
If you did not do it this wa, change it for assignment 5.
- In Part 1, it should take 1/2 second per request or about 5 seconds per
client since each client makes 10 requests.
- In Part 1, the serial and parallel servers should finish all the the
requests in about the same time.
- In Part 2, each request should take about 1 second, so the total should be
about 10 seconds per client for the serial server.
- In Part 2, there should be some overlap between compute and sleep for
the requests from the 2 clients, in the parallel server case.
- For Part 2, parallel server, the reduction could be as much as 5 seconds
if the parameters were chosen correctly.
- The timespec structure has two fields of integral type.
If you set the tv_sec field to 0.5, this is the equivalent to
setting it to 0.
- The tv_nsec field should be set to 500,000,000.
If you used a smaller value, such as 500,000, this is equivalent to
1/2 millisecond which is too small to be measured in this problem.