Engr 664: Concurrent Programming
Fall Semester 1997

Assignment #4
Due 9:30 a.m., Thursday, 13 November


Note

I am allowing quite a bit of time to complete this assignment because a few students may not be familiar with Java. Assignment #5, which will also be a Java threads program, will likely overlap with this assignment.


The Crew Chief

Design and implement "two" Java application programs with the following characteristics. Each program must:

The "two" programs will, of course, be very similar. Try to arrange it so that you can do either task with the same crew chief program.


The Worker Crew: Matrix Multiplication

This task is to compute the product of two matrices.

Each worker subtask should be to multiply a row of the first matrix by the entire second matrix to generate a result a row of the product matrix.


The Worker Crew: Web String Search

This task is to search several URLs on the World Wide Web to determine the total number of occurrences of a given string in the set of URLs. (You may assume the string does not span across lines of text.)

Each worker subtask is to search one URL for a given string. (The searches should, of course, be done concurrently.) You may want to examine the file URLSearcherTest.java on the anonymous ftp site for an example of how to access URLs from java. (Warning: The URLSearcherTest program is not documented and has not been fully tested.)


Assignment Submission

Submit a paper copy of your program listing and testing output to your instructor by the due date. Make sure you have documented your program appropriately and tested your program thoroughly.

Also submit copies of your source code via email to en664@hal.cs.olemiss.edu.


UP to the ENGR 664 Assignments document?


Copyright © 1997, H. Conrad Cunningham
Last modified: 29 October 1997.