rcore-os / rCore-Tutorial-Book-v3

A book about how to write OS kernels in Rust easily.
https://rcore-os.github.io/rCore-Tutorial-Book-v3/
GNU General Public License v3.0
1.23k stars 232 forks source link

rCore-Tutorial-Book-v3/chapter8/3semaphore #144

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

信号量机制 - rCore-Tutorial-Book-v3 3.6.0-alpha.1 文档

http://rcore-os.cn/rCore-Tutorial-Book-v3/chapter8/3semaphore.html

huanngod commented 2 years ago

所以我们可以把信号量也看成四一种资源,可放在一起让进程来管理,如下面代码第9行所示。 (四->是)