当前位置: 首页 > news >正文

《Operating System Concepts》阅读笔记:p286-p308

《Operating System Concepts》学习第 28 天,p286-p308 总结,总计 23 页。

一、技术总结

1.reentrant lock(可重入锁)

(1)为什么称为 reentrant lock?

A thread acquires a ReentrantLock lock by invoking its lock() method. If the lock is available—or if the thread invoking lock() already owns it, which is why it is termed reentrant—lock() assigns the invoking thread lock ownership and returns control.

(2)Python 中的 rerentrant lock

threading.RLock。

二、英语总结(生词:2)

1.hazard

c. sth that is dangerous and likely to cause damage(危害,风险,隐患)

示例:We also discussed various challenges in designing applications that are free from race conditions, including liveness hazards such as deadlocks (《Operating System Concepts》第 287 页)。

在上面这个例子中,liveness 不是 harzard, deadlock是hazard, 是一种liveness hazard,即“liveness hazard refers to situations where liveness is compromised, such as deadlock”。

2.adverse

(1) adverse: ad-(“toward, against”) + vetere(“to turn”)

adj. Adverse literally means “to turn against(反对),opposing(相反的)”. having a negative or harmful effect on sth(负面的,不利的)。

(2)示例:

Obviously, if two readers access the shared data simultaneously, no adverse effects will result(《Operating System Concepts》第 291 页)。

关于英语的注解同步更新汇总到 https://github.com/codists/English-In-CS-Books 仓库。

三、其它

第 6 章(Synchronization Tools)简评:介绍了 Crititical-Section, Peterson’s Solution,Mutext Locks, Semaphore, Monitor, Liveness。因为对这些内容不了解,所以对作者所说的内容很难有切身体会,如 Synchronization Tools 包含哪些?那么问题就变成了:1、怎么把书上的内容和实际应用结合起来?2.自己不知道这些内容,是因为平时工作中没有用到,还是用到了但是因为自己忽视了?这是本人阅读第 6 章的感受。

四、参考资料

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)

相关文章:

  • 关于使用Visual Studio编码问题
  • 30天学习Java第四天——设计模式
  • RabbitMQ之旅(2)
  • Python----数据可视化(Pyecharts三:绘图二:涟漪散点图,K线图,漏斗图,雷达图,词云图,地图,柱状图折线图组合,时间线轮廓图)
  • 阿里云魔笔低代码应用开发平台快速搭建教程
  • 【C++】string类的相关成员函数以及string的模拟实现
  • leecode200.岛屿数量
  • Nginx快速上手
  • 【AI与大模型】解锁本地大模型的潜力:Ollama API 调用深度解析与实践指南
  • springboot常用注解
  • YOLOv11来了,使用YOLOv11训练自己的数据集和推理(附YOLOv11网络结构图)
  • WinForm基础知识1-20
  • dockerfile 编写入门
  • DeepSeek linux服务器(CentOS)部署命令笔记
  • Linux date 命令使用指南
  • 利用亚马逊云科技”多模态AI知识库“获取非结构化数据总结
  • 信息学奥赛一本通 1449:【例题2】魔板
  • 算法系列之回溯算法求解数独及所有可能解
  • Mysql篇——SQL优化
  • 工程化与框架系列(33)--前端安全实践指南
  • 独行侠以1.8%概率获得状元签,NBA原来真的有剧本?
  • 习近平致电祝贺阿尔巴尼斯当选连任澳大利亚总理
  • 成都警方通报:8岁男孩落水父母下水施救,父亲遇难
  • “影像上海”中的自媒体影像特展:无论何时,影像都需要空间
  • 上海证监局规范辖区私募经营运作,6月15日前完成自评自纠
  • 外交部:习近平主席同普京总统达成许多新的重要共识