Thread and Executor Service Assignment

From CSE231 Wiki
Jump to navigation Jump to search

Building On Previous Exercises

Be sure to complete the Half & Half and Coarsening exercises first.

Code To Implement

DefaultThreadFactory

class: DefaultThreadFactory.java Java.png
methods: newThread
package: threadfactory.exercise
source folder: student/src/main/java

method: public Thread newThread(Runnable target) Sequential.svg (sequential implementation only)

ThreadHalfAndHalfNucleobaseCounter

class: ThreadHalfAndHalfNucleobaseCounter.java Java.png
methods: constructor
threadFactory
count
package: count.exercise
source folder: student/src/main/java

constructor

threadFactory

count

method: public int count(byte[] chromosome, Nucleobase targetNucleobase) Parallel.svg (parallel implementation required)

ExecutorHalfAndHalfNucleobaseCounter

class: ExecutorHalfAndHalfNucleobaseCounter.java Java.png
methods: constructor
executorService
count
package: count.exercise
source folder: student/src/main/java

constructor

executorService

count

method: public int count(byte[] chromosome, Nucleobase targetNucleobase) Parallel.svg (parallel implementation required)

ExecutorCoarseningNucleobaseCounter

class: ExecutorCoarseningNucleobaseCounter.java Java.png
methods: constructor
executorService
numRanges
count
package: count.exercise
source folder: student/src/main/java

constructor

executorService

numRanges

count

method: public int count(byte[] chromosome, Nucleobase targetNucleobase) Parallel.svg (parallel implementation required)

Correctness

class: __ThreadAndExecutorTestSuite.java Junit.png
package: count.exercise
source folder: testing/src/test/java

Pledge, Acknowledgments, Citations

file: thread-and-executor-pledge-acknowledgments-citations.txt

More info about the Honor Pledge