Commit 115e2aee authored by amira.alkatably's avatar amira.alkatably

final commit

parent e2e89e5e
...@@ -43,5 +43,5 @@ Calculates and returns the sum of primes number. ...@@ -43,5 +43,5 @@ Calculates and returns the sum of primes number.
- ParallelCounter4 Class: Similar to ParallelCounter3 but uses executor.submit to submit tasks and obtain Future objects for results. Calculates and returns the sum of primes number. - ParallelCounter4 Class: Similar to ParallelCounter3 but uses executor.submit to submit tasks and obtain Future objects for results. Calculates and returns the sum of primes number.
The SequentialCounter class is a simple sequential implementation for counting primes number within a given range.
...@@ -21,6 +21,26 @@ public class Tester extends TestCase { ...@@ -21,6 +21,26 @@ public class Tester extends TestCase {
} }
public void testSingleThread() { public void testSingleThread() {
testAll(1);
}
public void testTwoThread() {
testAll(2);
}
public void testSevenThread() {
testAll(7); testAll(7);
} }
public void testEightThread() {
testAll(8);
}
public void test11Thread() {
testAll(11);
}
public void test16Thread() {
testAll(16);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment