《Operating System Concepts》閱讀筆記:p125-p146
《Operating System Concepts》學習第 14 天,p125-p146 總結,總計 20 頁。
一、技術總結
1.IPC(Interprocesses Comunicating)
(1) shared memory
(2)message passing
2.primitive
(1)語言中的 primitive
primitive: primus("first", 參考 prime) + -itive(a suffix that forms adjectives, indicating the characteristic of sth)
adj. Primitive literally means "relating to the first or original state". In a broader sense, it describes sth is funamental or simple in nature。
c. sth primitive。
(2)編程中的 primitive
primitive 在英語中的意思不難理解,意為"原始的"。難以理解的是在編程中,primitive 作為名詞的定義是什么,到底什么樣的東西可以稱為 primitive?下面是一些個人的理解:
Primitive is the most simple operation or function that are provied by a sytem, programming language, hardware, which serves as the foundation for more complex funtionality.
個人認為,primitive 想描述某個東西是"basic(基礎的), simple(簡單的), fundamental(不能再分的)",但 primitive 的定義是籠統的,相對的,沒有明確的分界線——比如操作系統的 send(), receive() 稱為 primitive, 那么我自己定義的某個函數(如:myfunc()) 能不能稱為 primitive?
本人不大喜歡這個術語,因為沒有明確的分界線;也不喜歡這個詞的中文意思“原語”,因為不好理解“語”指什么。盡量不用這個詞,但我們要能做到:看到別人用這個詞的時候,能明白理解別人想表達的意思。
(3)示例
1)operating system primitiv
Under direct communication, each process that wants to communicate must explicitly name the recipient or sender of the communication. In this scheme, the send() and receive() primitives are defined as:
send(P, message)—Send a message to process P.
receive(Q, message)—Receive a message from process Q
個人認為,從操作系統層面來看,send(), receive() 是不可再分的,原始的,所以稱為 primitive。但是從代碼層面來說,其實這些函數是由許多語句組成的,那就不再適合稱為 primitive。所以個人認為primitive 的定義是籠統的,相對的,沒有明確的分界線,看所處的角度(層面)。
二、英語總結(生詞:2)
1.bounded
(1)bounded: bound
adj. describing sth that is limited or has defined boundaries(有明確邊界)。bind的過去式是bound, bound的過去式是 bounded。
2.conduit
(1)conduit: con-("with, together") + ducere("to lead")
c. A conduit is a channel often used for protedction((保護線路的)導線管)。
(2)示例
A pipe acts as a conduit allowing two processes to communicate(《Operating System Concepts》第 139 頁)。
關于英語的注解同步更新匯總到 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)
浙公網安備 33010602011771號