Fixed deadlock issue. Removed ugly acquires. Produce and Consume are no longer synchronized (unnecessary with semaphores).
Fixed deadlock issue. Removed ugly acquires. Produce and Consume are no longer synchronized (unnecessary with semaphores).
Changed exception handling for opening file.
Thread number doesn't need to be passed into MapTask constructor.
MapTask constructor no longer takes arguments.
ReduceTask now has similar constructor as MapTask.
MapReduce now has a single Random instance to pull random numbers. Also has method to pull random BoundedBuffer based on this random number. MapTask now gets random BoundedBuffer from MapReduce.
Removed unncessary null check.
Removed unnecessary import.
MapTask reads in each line and stores it in an ArrayList. No tokenizing in pre-processing.
Merge remote-tracking branch 'origin/master'
Removed empty lines