Thread and Executor Service Assignment
Revision as of 09:49, 15 February 2022 by Cosgroved (talk | contribs) (→ExecutorHalfAndHalfNucleobaseCounter)
Contents
Building On Previous Exercises
Be sure to complete the Half & Half and Coarsening exercises first.
Code To Implement
DefaultThreadFactory
class: | DefaultThreadFactory.java | |
methods: | newThread | |
package: | threadfactory.exercise | |
source folder: | student/src/main/java |
method: public Thread newThread(Runnable target)
(sequential implementation only)
ThreadHalfAndHalfNucleobaseCounter
class: | ThreadHalfAndHalfNucleobaseCounter.java | |
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 implementation required)
ExecutorHalfAndHalfNucleobaseCounter
class: | ExecutorHalfAndHalfNucleobaseCounter.java | |
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 implementation required)
ExecutorCoarseningNucleobaseCounter
class: | ExecutorCoarseningNucleobaseCounter.java | |
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 implementation required)
Correctness
class: | __ThreadAndExecutorTestSuite.java | |
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