《Operating System Concepts》閱讀筆記:p147-p158
《Operating System Concepts》學習第 15 天,p147-p158 總結,總計 12 頁。
一、技術總結
1.socket
(1)定義
A socket is defined as an endpoint for communication(socket 是用于通信的端點,或者說socket 是通信端點的抽象表示。).
A socket is identified by an IP address concatenated with a port number(socket 使用IP和 Port 進行標識).
2.RPC(Remote Procedure Calls)
二、英語總結(生詞:2)
1.paradigm
(1)pradadigm: para-("beside(next to)") + *deik-("to show")
c. Paradigm refere to sth serves as a typical example, model or pattern(范式)。
(2)示例
One of the most common forms of remote service is the RPC paradigm, which was designed as a way to abstract the procedure-call mechanism for use between systems with network connections(《Operating System Concepts》第 149 頁)。
2.stub
(1)定義
c. the short end which is left after the main part of sth has beend remove(存根, 樹樁)。
In programming, a stub is a small, incomplete piece of code that stands in for a larger or more complex component(function, or procedure)。
(2)示例
The RPC system hides the details that allow communication to take place by providing a stub on the client side(《Operating System Concepts》第 150 頁)。
如上, stub想表達的意思:In RPC systems, the term "stub" is used because it represents a simplified, local version of a remote service, much like a "stub" is a small, leftover part of something larger。
關于英語的注解同步更新匯總到 https://github.com/codists/English-In-CS-Books 倉庫。
三、其它
第 3 章(Process)簡評:介紹什么是進程,進程的創建和終止,IPC,Socket 和 RPC。讀完這章,我真正的理解了什么是process(進程):Process is a program loaded into memory and executing。之前看了各種文章,感覺這些文章都喜歡濫用比喻,但是難以理解,讓人摸不著頭腦。 個人覺得還是把一個東西的來龍去脈介紹清楚,這樣最簡單,也最容易讓人理解。
四、參考資料
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號