Assignment 5
A First Look at Concurrency
Assignment
Due at the beginning of class on Wednesday, October 15
Preparation
Download the java program found here.
This program works as follows
- a file, quickBrownFoxIn.txt (provided in the zip file) is opened for input. This file has lots of lines of text that all look the same.
- a second file, quickBrownFoxOut.txt (provided in the zip file) is opened for output. This file is initially empty.
- two threads are then started. Each thread does the same thing. It opens reads a character from quickBrownFoxIn.txt and writes that character to quickBrownFoxOut.txt.
To Do
- unzip the file
- open quickBrownFoxIn.txt in Notepad or some other text viewer to see what it looks like
- run the program
- open quickBrownFoxOut.txt in Notepad or some other text viewer to see what it looks like
To Turn In
Turn in this information:
- Your initial idea of what you expect the output file to look like
- A careful description of what the output file actually looks like
- A printout of a part the output file that clearly identifies an anomaly if one exists.
- A discussion of why the two files are different, if indeed they are, in terms of the IFE cycle and the OS