《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)