From e53f1397f6e916b9afcde8ceb9906eef82a4e9c7 Mon Sep 17 00:00:00 2001 From: xingshaocheng Date: Sun, 22 Apr 2018 07:51:11 +0800 Subject: [PATCH] Update README.md --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1d7f45a..1e7fb28 100644 --- a/README.md +++ b/README.md @@ -627,7 +627,10 @@ KPM:Knuth-Morris-Pratt算法(简称KMP) * 互斥、持有、不可剥夺、不可剥夺。 * [Java如何查看死锁?](https://blog.csdn.net/u014039577/article/details/52351626) * JConsole 可以识别死锁。 - + +* [java多线程系列:死锁及检测](https://blog.csdn.net/bohu83/article/details/51135061) + * jstack 可以显示死锁。 + # 操作系统 ## 计算机原理 @@ -644,14 +647,15 @@ TODO ## 协程 -TODO - +* [《终结python协程----从yield到actor模型的实现》](https://www.thinksaas.cn/group/topic/839375/) + * 线程的调度是由操作系统负责,协程调度是程序自行负责 + * 与线程相比,协程减少了无畏的操作系统切换. + * 实际上当遇到IO操作时做切换才更有意义,(因为IO操作不用占用CPU),如果没遇到IO操作,按照时间片切换. + ## Linux * [《Linux 命令大全》](http://www.runoob.com/linux/linux-command-manual.html) - - # 设计模式 ## 设计模式的六大原则