mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 18:58:44 +00:00
Added tests for thread-pool pattern
Fixed concurrency problem in id generation of Task
This commit is contained in:
@@ -7,7 +7,7 @@ package com.iluwatar.threadpool;
|
||||
*/
|
||||
public class CoffeeMakingTask extends Task {
|
||||
|
||||
private static final int TIME_PER_CUP = 300;
|
||||
private static final int TIME_PER_CUP = 100;
|
||||
|
||||
public CoffeeMakingTask(int numCups) {
|
||||
super(numCups * TIME_PER_CUP);
|
||||
|
||||
Reference in New Issue
Block a user