《Operating System Concepts》阅读笔记:p258-p271

《Operating System Concepts》学习第 26 天,p258-p271 总结,总计 14 页。

一、技术总结

1.critical section

A section of code responsible for changing data that must only be executed by one thread or process at a time to avoid a race condition.

2.Peterson’s solution

Peterson’s solution A historically interesting algorithm for implementing critical sections.

3.memory barrier/memeory fence

Computer instructions that force any changes in memory to be propagated to all other processors in the system.

  1. Mutex lock

(1)mutex

mutex 是 mutual exclusion 的缩写。

(2)spinlock

A locking mechanism that continuously uses the CPU while waiting for access to the lock.

The type of mutex lock we have been describing is also called a spinlock because the process “spins” while waiting for the lock to become available

二、英语总结(生词:1)

1.deficiency

(1)deficiency: de-(“down, away,lack of”) + facere(“to do, to make”)

c/u. the state of lacking sth needed,a shortcoming, inadequacy(不足)。

(2)deficient

adj. lacking or not good enough(不足的)。

(3)示例

Suppose we want to modify the algorithm to remedy this deficiency(《Operating System Concepts》第 258 页)。

关于英语的注解同步更新汇总到 https://github.com/codists/English-In-CS-Books 仓库。

三、其它

晕乎乎,很多概念在实际中没有用过或者说没有注意过,导致阅读起来其实没有达到“理解”的程度,只达到”熟悉“的程度,在头脑中有一个概念,待以后用到的时候再回看。

四、参考资料

1. 编程

(1) Abraham Silberschatz,Peter Baer Galvin,Greg Gagne《Operating System Concepts》:https://book.douban.com/subject/30272539/

2. 英语

(1) Etymology Dictionary:https://www.etymonline.com

(2) Cambridge Dictionary:https://dictionary.cambridge.org

欢迎搜索及关注:编程人(a_codists)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值