Skip to content

Commit 6064d97

Browse files
committed
change pool size
1 parent 15ab9b9 commit 6064d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/example/concurrency/features/visibility/Visibility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
public class Visibility {
1616
private static long count = 0;
17-
private static ThreadPoolExecutor threadPoolExecutor = ThreadPoolBuilder.fixedPool().build();
17+
private static ThreadPoolExecutor threadPoolExecutor = ThreadPoolBuilder.fixedPool().setPoolSize(2).build();
1818

1919
private void add10k() {
2020
int idx = 0;

0 commit comments

Comments
 (0)