兼罔 发表于 2025-6-1 20:51:24

《Operating System Concepts》阅读笔记:p309-p330

《Operating System Concepts》学习第 29 天,p309-p330总结,总计 22 页。
一、技术总结

1.Python 中的并发编程

(1)semaphore
class threading.Semaphore(value=1)。
(2)condition variable
class threading.Condition(lock=None)
书上使用的是 Java, 因本人在开发工作中使用的是 Python, 所以补充一些 Python 相关的内容。平时都没注意到这些(Python 官方文档:The Python Standard Library » Concurrent Execution » threading — Thread-based parallelism),是我孤陋寡闻了。当然,现在只是知道了,还是不知道应用场景是什么,何时使用。
2.memory transaction

A type of memory supporting memory transactions.
3.dead lock

(1)定义
The state in which two processes or threads are stuck waiting for an event that can only be caused by one of the processes or threads.
(2)Necessary Conditions
1)Mutual exclusion
2)Hold and wait
3)No preemption
4)Circular wait
二、英语总结(生词:2)

1.coherency

(1)coherence: co-("together") + haerere("to adhere, stick")
u. sth logically or structurally connected and consistent(连贯性)。
(2)coherence vs coherency
两者意思一样,暂时没看出有啥区别,先记录。
1)However, HTM does require that existing cache hierarchies and cache coherency protocols be modified to support transactional memory(《Operating System Concepts》第 312 页)。
2)Discuss, with examples, how the problem of maintaining coherence of cached data manifests itself in the following processing environments:
a.Single-processor systems
b.Multiprocessor systems
c.Distributed systems
2.a priori

adj/adv.presupposed by experience(凭经验预设的),两个词组合形成一个形容词。
示例:Note that the resources must be claimed a priori in the system(《Operating System Concepts》第 333 页)。
关于英语的注解同步更新汇总到 https://github.com/codists/English-In-CS-Books 仓库。
三、其它

第 7 章(Synchronization Examples)简评:本章介绍了 synchronization 在 POSIX 系统、在 Java 中的应用。
四、参考资料

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) CambridgeDictionary:https://dictionary.cambridge.org

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

来源:程序园用户自行投稿发布,如果侵权,请联系站长删除
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!

涅牵 发表于 2025-11-1 00:38:48

感谢分享,下载保存了,貌似很强大

东郭欣然 发表于 2025-12-11 01:32:32

谢谢分享,试用一下

挚魉 发表于 2025-12-30 14:56:04

用心讨论,共获提升!

讲怔 发表于 2026-1-8 00:11:41

过来提前占个楼

敖可 发表于 2026-1-12 17:30:13

收藏一下   不知道什么时候能用到

哈妙思 发表于 2026-1-14 16:30:59

感谢发布原创作品,程序园因你更精彩

撷监芝 发表于 2026-1-20 15:49:36

前排留名,哈哈哈

距佰溘 发表于 2026-1-21 00:16:27

新版吗?好像是停更了吧。

豺独 发表于 2026-1-25 08:35:44

感谢发布原创作品,程序园因你更精彩

利怡悦 发表于 2026-1-25 10:43:34

过来提前占个楼

晦险忿 发表于 2026-2-3 11:12:37

感谢发布原创作品,程序园因你更精彩

呈步 发表于 2026-2-4 13:46:32

谢谢分享,辛苦了

窟聿湎 发表于 2026-2-5 21:13:38

yyds。多谢分享

酝垓 发表于 2026-2-7 03:11:55

新版吗?好像是停更了吧。

栓州 发表于 2026-2-7 23:34:31

感谢分享,下载保存了,貌似很强大

袁可佳 发表于 2026-2-8 06:53:47

感谢分享

翳舀 发表于 2026-2-9 14:26:51

这个好,看起来很实用

稞冀 发表于 2026-2-9 20:51:55

喜欢鼓捣这些软件,现在用得少,谢谢分享!

归悦可 发表于 2026-2-10 00:41:38

喜欢鼓捣这些软件,现在用得少,谢谢分享!
页: [1] 2
查看完整版本: 《Operating System Concepts》阅读笔记:p309-p330