Parallelization

Get the Assignment Code

Login to your university Unix account and copy the assignment code to a location under your home directory:

  cp -r /export/home/public/schwesin/cpsc543/assignments/project2 LOCATION

where LOCATION is a directory of your choosing.

Overview

Perform all test execution on arya to avoid any platform-dependent output differences.

Here are the files of interest in this project directory. These are listed in order of STUDENT worklets. The first three active classes require synchronization of two adjacent uses of a PrintStream file, see STUDENT 1-3 comments.

There are two versions of the main pipeline constructor. You must update the second in STUDENT 4.

You will make no changes to these updated files:

There is at least one BlockingQueue concrete class that does not work out of the box. You just have to document any that do not work per STUDENT 5. Extra work was done to make them work.

Turning in the Assignment

For this assignment, you must turn in a zip file of a directory named project2 containing your edited files. Submit the zip file to the appropriate folder on D2L.

Figure 1: Dataflow for ParallelDataflow.java

Figure 2: Dataflow for CSC543s24VeryParallelDataflow.java