《Operating System Concepts》閱讀筆記:p258-p271
《Operating System Concepts》學(xué)習(xí)第 26 天,p258-p271 總結(jié),總計 14 頁。
一、技術(shù)總結(jié)
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.
-
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
二、英語總結(jié)(生詞: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 頁)。
關(guān)于英語的注解同步更新匯總到 https://github.com/codists/English-In-CS-Books 倉庫。
三、其它
暈乎乎,很多概念在實際中沒有用過或者說沒有注意過,導(dǎo)致閱讀起來其實沒有達到“理解”的程度,只達到”熟悉“的程度,在頭腦中有一個概念,待以后用到的時候再回看。
四、參考資料
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

歡迎搜索及關(guān)注:編程人(a_codists)
浙公網(wǎng)安備 33010602011771號