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);