mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 00:13:56 +00:00
Added tests for thread-pool pattern
Fixed concurrency problem in id generation of Task
This commit is contained in:
1 parent
47709e24b9
commit
fd8c05846f
8 files changed
+198
-5
No files matched your search
@@ -7,7 +7,7 @@ package com.iluwatar.threadpool;
|
||||
*/
|
||||
public class PotatoPeelingTask extends Task {
|
||||
|
||||
private static final int TIME_PER_POTATO = 500;
|
||||
private static final int TIME_PER_POTATO = 200;
|
||||
|
||||
public PotatoPeelingTask(int numPotatoes) {
|
||||
super(numPotatoes * TIME_PER_POTATO);
|
||||
|
||||
Reference in new issue
Block a user