CS 4953 Experimentation in Computer Science Assignment 1 Comments: Spring 2003
This was graded on a basis of 30 points.
- In doing the timing, make sure you are not timing print statements.
- Be careful in passing parameters to threads.
If you create threads in a loop and join them later, the thread IDs
and parameters must all be in different locations.
They cannot be shared by the different threads.
- Be careful in returning values from a thread.
You cannot return a value in an automatic variable of the thread
that is returning the value.
It can be an automatic variable in the thread that does the join.
- If you are asked to resubmit, turn in the new output along with the
assignment being returned so I can see what I asked you to redo.