From 8240e3040e267ba7d6e27f1fa307785cd99c63de Mon Sep 17 00:00:00 2001 From: xiangflight Date: Mon, 23 Jul 2018 20:24:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E9=83=A8=E5=88=86?= =?UTF-8?q?=E7=AC=94=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notes/Java 并发.md | 4 ++-- notes/计算机操作系统.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/notes/Java 并发.md b/notes/Java 并发.md index 800796db..42e1403d 100644 --- a/notes/Java 并发.md +++ b/notes/Java 并发.md @@ -952,7 +952,7 @@ produce..produce..consume..consume..produce..consume..produce..consume..produce. ```java public class ForkJoinExample extends RecursiveTask { - private final int threhold = 5; + private final int threshold = 5; private int first; private int last; @@ -964,7 +964,7 @@ public class ForkJoinExample extends RecursiveTask { @Override protected Integer compute() { int result = 0; - if (last - first <= threhold) { + if (last - first <= threshold) { // 任务足够小则直接计算 for (int i = first; i <= last; i++) { result += i; diff --git a/notes/计算机操作系统.md b/notes/计算机操作系统.md index 4a4077d3..52c74dd7 100644 --- a/notes/计算机操作系统.md +++ b/notes/计算机操作系统.md @@ -352,7 +352,7 @@ end monitor; 管程引入了 **条件变量** 以及相关的操作:**wait()** 和 **signal()** 来实现同步操作。对条件变量执行 wait() 操作会导致调用进程阻塞,把管程让出来给另一个进程持有。signal() 操作用于唤醒被阻塞的进程。 - **使用管程实现生成者-消费者问题**
+ **使用管程实现生产者-消费者问题**
```pascal // 管程