time due | submission file |
---|---|
last day of class | csci/431/HW9/primeExp.c |
Start by downloading the starter ZIP file. This is a working sequential program. Your assignment is to make it a bit more concurrent with Pthreads. In particular, note the two calls to primeSearch that occur within a loop of the main routine. Modify the program so that these are run in separate Pthreads.
This isn't hard, but some solutions will be more efficient that others and they shall be rewarded.
You may find it useful to look at the Parallel dot-product program discussed in class.
Copy and primeEx.cpp to the assignment drop-off directory.