Skip to content

Commit 111cfe9

Browse files
committed
Move log to correct place
1 parent d573f67 commit 111cfe9

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎concurrency/java-concurrency/src/main/java/com/fd/tryout/concurrency/java/PoolOfThreadsWaitingToBegin.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ public static void main(String[] args) throws InterruptedException {
7373
.limit(15)
7474
.collect(Collectors.toList());
7575

76-
System.out.println("Threads are generated, waiting for them to become ready...");
7776
workerList.forEach(worker -> s.submit(worker));
77+
System.out.println("Threads are generated, waiting for them to become ready...");
7878
readyThreadCounter.await(); // Wait until all threads get in their run method
7979
System.out.println("All threads are ready");
8080

‎concurrency/java-concurrency/src/main/java/com/fd/tryout/concurrency/java/TryExecutorService.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
public class TryExecutorService {
1717

1818
public static void main(String[] args) {
19-
2019
ExecutorService s = Executors.newFixedThreadPool(5);
2120
Runnable r = () -> System.out.println("Hello world!");
2221
s.submit(r);

0 commit comments

Comments
 (0)