Skip to content

Commit e198044

Browse files
committed
updates java basic
1 parent bd9c28e commit e198044

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

第5章 多线程/多线程.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ public static ExecutorService newFixedThreadPool(int nThreads)
187187
- 调用如下方法即可
188188
- Future<?> submit(Runnable task)
189189
提交一个 Runnable 任务用于执行,并返回一个表示该任务的 Future。
190-
- <T> Future<T> submit(Callable<T> task)
191-
提交一个返回值的任务用于执行,返回一个表示任务的未决结果的 Future
190+
- <T> Future<T> submit(Callable<T> task)
191+
提交一个Callable任务用于执行,返回一个表示任务的未决结果的 Future
192192
- 结束线程:shutdown() 关闭线程
193193

194194
```java

0 commit comments

Comments
 (0)