Description
### Motivation
* Demonstrate your ability to program using Java concurrency mechanisms (i.e., Threads / ServiceExecutors / latch objects).
### Instructions
* Your task is to create a system which can count the words within a book.
– There are four classes to implement. Two implementations of [WordCounter](src/main/java/edu/nyu/cs9053/homework10/WordCounter.java) and two implementations of
[FilesWordCounter](src/main/java/edu/nyu/cs9053/homework10/FilesWordCounter.j ava)
– I have stubbed out the four implementations with TODOs for you to implement.
–
[ThreadedWordCounter](src/main/java/edu/nyu/cs9053/homework10/ThreadedWordCou nter.java)
–
[ExecutorWordCounter](src/main/java/edu/nyu/cs9053/homework10/ExecutorWordCou nter.java)
–
[ThreadedFilesWordCounter](src/main/java/edu/nyu/cs9053/homework10/ThreadedFi lesWordCounter.java)
–
[ExecutorFilesWordCounter](src/main/java/edu/nyu/cs9053/homework10/ExecutorFi lesWordCounter.java)
– Besides the four implementations you must address the TODO in
[Counter](src/main/java/edu/nyu/cs9053/homework10/Counter.java)
– To address the TODO you only need to modify code within the `count` method. If you find yourself creating instance variables or anything outside of the `count` method you are doing something wrong.
– Run [Counter](src/main/java/edu/nyu/cs9053/homework10/Counter.java) passing in values as detailed by it.
### Implementation
* Ensure your code is correct by compiling and testing it
* A portion of your grade will be based upon readability and organization of your code.
– Follow the naming guidelines of lecture
– Break large functions into multiple functions based on logical organizations
### Book Sources
* All book texts came from [Project Gutenberg](https://www.gutenberg.org)
Reviews
There are no reviews yet.