1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Merge pull request #1782 from Raxcl/patch-4

Update java-concurrent-questions-03.md
This commit is contained in:
Guide 2022-08-08 06:50:47 +08:00 committed by GitHub
commit 7628b6178d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,7 +250,7 @@ public class ThreadPoolExecutorDemo {
new ThreadPoolExecutor.CallerRunsPolicy());
for (int i = 0; i < 10; i++) {
//创建WorkerThread对象WorkerThread类实现了Runnable 接口)
//创建 MyRunnable 对象MyRunnable 类实现了Runnable 接口)
Runnable worker = new MyRunnable("" + i);
//执行Runnable
executor.execute(worker);
@ -631,4 +631,4 @@ CompletableFuture<Void> allFutures = CompletableFuture.allOf(
- 《深入理解 Java 虚拟机》
- 《实战 Java 高并发程序设计》
- Java并发之AQS详解https://www.cnblogs.com/waterystone/p/4920797.html
- Java并发包基石-AQS详解https://www.cnblogs.com/chengxiao/archive/2017/07/24/7141160.html
- Java并发包基石-AQS详解https://www.cnblogs.com/chengxiao/archive/2017/07/24/7141160.html