Here is a basic outline of the steps to follow to complete this example.
- Clone Starter Code from GitHub
git clone <url> java
ParallelOneto use 4 threads.
Take a screenshot showing a race condition.
ParallelOneto use a lock.
Take a screenshot showing no race condition.
ParallelTwoto use blocking and an arbitrary number of threads.
Run several times with different number of threads (1 - 10) and graph results.
README.mdto answer two questions
When complete, use Git to commit and push updated code.
git add . git commit -m "Example Complete" git push
- On GitHub, create a release tag and submit URL to Canvas for grading.
Compiling and Running Java
Recall that you can compile a Java program using
You can then run it using