Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 108860b

Browse files
Merge pull request Snailclimb#1026 from Xunzhuo/patch-14
Update java线程池学习总结.md
2 parents fccb4a2 + 6cc0e4c commit 108860b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/java/multi-thread/java线程池学习总结.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ pool-1-thread-2 End. Time = Sun Apr 12 11:14:47 CST 2020
341341

342342
现在,我们就分析上面的输出内容来简单分析一下线程池原理。
343343

344-
**为了搞懂线程池的原理,我们需要首先分析一下 `execute`方法。**在 4.1 节中的 Demo 中我们使用 `executor.execute(worker)`来提交一个任务到线程池中去,这个方法非常重要,下面我们来看看它的源码:
344+
**为了搞懂线程池的原理,我们需要首先分析一下 `execute`方法。**在 4.1 节中的 Demo 中我们使用 `executor.execute(worker)`来提交一个任务到线程池中去,这个方法非常重要,下面我们来看看它的源码:
345345

346346
```java
347347
// 存放线程池的运行状态 (runState) 和线程池内有效线程的数量 (workerCount)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /