For this lab, you will parallelize a sequential algorithm. This Search.java program contains a generic class called Set. This class has an add method for adding elements to the set, and an exists method for testing whether an element is in the set.
The main class creates a Set, adds 100 names to it, and then tests 10 names for membership in the set.
Your task is to change the "exists" function so that it splits the work into two independent threads.
Copyright © 2018 Ian Finlayson | Licensed under a Creative Commons Attribution 4.0 International License.