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

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

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

相关文章:

  • 开启云服务器ubuntu22.04的远程桌面,支持Windows远程连接 - 开启XRDP支持
  • TypeScript装饰器
  • An effective algorithm for peptide de novo sequencing from MS/MS spectra
  • 二分算法刷题
  • 【NLP】 4. NLP项目流程与上下文窗口大小参数的影响
  • llama-factory笔记
  • python二级复习(1)
  • 编程题-第k个语法符号(中等)
  • 在react当中利用IntersectionObserve实现下拉加载数据
  • 使用生成对抗网络(GAN)进行人脸老化生成的Python示例
  • Conda 虚拟环境创建:加不加 Python 版本的深度剖析
  • Python(最新版)集成开发环境PyCharm下载安装详细教程
  • 开源WAF雷池本地化部署与远程查看网站安全防护的详细操作指南
  • 深度解析螺栓连接计算题:原理、计算与应用
  • Helm 简介与安装
  • 【leetcode hot 100 199】二叉树的右视图
  • ModelScope推理QwQ32B
  • SpringBoot手动注册定时任务
  • 【WRF-Urban】使用 CGLC-MODIS-LCZ_100m 数据集运行 WRF 时的城市参数化问题
  • 从0开始搭建微服务架构特别篇SpringCloud网关聚合knife4j
  • 个人网站做哪一种比较赚钱/网上营销方法
  • 网站空间和服务器的区别/我要恢复百度
  • 无锡网站建设上海韵茵/seo 优化思路
  • 做免费的网站教程/什么软件可以发布推广信息
  • 起点网站建设/个人博客网页设计html
  • 关于网站制作报价/seo需要掌握哪些技术