《Operating System Concepts》阅读笔记:p177-p178

ops/2025/3/3 15:03:03/

《Operating System Concepts》学习第 18 天,p177-p178 总结,总计 2 页。

一、技术总结

1.implicit thread

A programming model that transfers the creation and management of threading from application developers to compilers and run-time libraries.

2.thread pool

Unlimited threads could exhaust system resources, such as CPU time or memory. One solution to this problem is to use a thread pool.

thread pool 是一种解决方案(solution):A thread pool is a solution where a number of threads are created at process startup and placed in a pool, waiting for work.

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

1.trivial

(1)trivial: (“three”) + via(“road”)

adj. Trivial is from trivialis(“a place three roads meet”), over time, trivial means “havingf little value and importance(微不足道的)”。

(2)示例

Designing such applications is not a trivial undertaking: programmers must address not only the challenges outlined in Section 4.2 but additional difficulties as well(《Operating System Concepts》第 177 页)。

2.discard

(1)discard: dis(“away”) + card

vt. Historically, “discard” meant “remove a card from one’s hand” in a card game. Over time, discard means “to throw away sth(抛弃,丢弃)”, “to get rid of sth(摆脱)” when sth is no longer useful or needed(这是 discard 的使用语境)。

(2)示例

he first issue concerns the amount of time required to create the thread, together with the fact that the thread will be discarded once it has completed its work(《Operating System Concepts》第 177 页)。

在这个例子中, “discard the thread” 意思是 “terminate the thread, destroy the thread”。

3.resume

(1)resume: re-(“again”) + sumere(“to take”)

vi/vt. Resume literally means “to take again”, over time, it envolve to mean “continue doing sth after a pause”。

(2)示例

When a server receives a request, rather than creating a thread, it instead submits the request to the thread pool and resumes waiting for additional requests(《Operating System Concepts》第 177 页)。

在上面这个句子中,resume 也是“continue doing sth after a pause”的意思。当然,英语中有时候为了简洁,往往会省略一些内容,为了更好的理解,这里句子可以改成:

When a server receives a request, rather than creating a thread, it instead stop waiting to submit the request to the thread pool. After submitting the request, server resumes waiting for additional requests.

总之,要理解resume的在具体上下文中的含义,就要把握住“continue doing sth after a pause”的思想。如果句子不全不好理解,就先把句子补全去理解。

关于英语的注解同步更新汇总到 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)


http://www.ppmy.cn/ops/162790.html

相关文章

博客系统--测试报告

博客系统--测试报告 项目背景项目功能功能测试①登录功能测试②发布博客功能测试③删除文章功能测试④功能测试总结: 自动化测试自动化脚本执行界面: 性能测试 本博文主要针对个人实现的项目《博客系统》去进行功能测试、自动化测试、性能测试&#xff0…

LeetCode 热题100 438. 找到字符串中所有字母异位词

LeetCode 热题100 | 438. 找到字符串中所有字母异位词 大家好,今天我们来解决一道经典的算法题——找到字符串中所有字母异位词。这道题在 LeetCode 上被标记为中等难度,要求我们在字符串 s 中找到所有是 p 的异位词的子串,并返回这些子串的…

Linux(centOS) 命令提示符格式修改(PS1)

1. 命令提示符的组成 命令提示符(PS1)通常由以下部分组成: 部分示例说明[ 和 ][...]提示符的开头和结尾,用于视觉分隔。用户名root 或 tianjiajie当前登录的用户。root 是超级用户,普通用户可能是其他名称。分隔用户…

16.11 LangChain SQL 生成与执行实战:构建安全高效的数据库查询引擎

LangChain SQL 生成与执行实战:构建安全高效的数据库查询引擎 关键词:SQL 安全执行、数据库连接池、查询结果处理、错误重试机制、生产级 SQL 运维 1. SQL 执行全链路架构设计 1.1 核心处理流程图 #mermaid-svg-2aWgNUpLctOECv8J {font-family:"trebuchet ms",ve…

ARM Linux LCD上实时预览摄像头画面

文章目录 1、前言2、环境介绍3、步骤4、应用程序编写4.1、lcd初始化4.2、摄像头初始化4.3、jpeg解码4.4、开启摄像头4.5、完整的程序如下 5、测试5.1、编译应用程序5.2、运行应用程序 6、总结 1、前言 本次应用程序主要针对支持MJPEG格式输出的UVC摄像头。 2、环境介绍 rk35…

react 编写一个待办事项,函数优化,组件传值

待办事项 Import react {component} from ‘react’ Class TodoList extend component{ Costructor(props){ Super(props); This.state{ Value””, List:[] } } getValue(e){ Let valuee.target.value; This.setState({ value }) } addValue(){ This.setState({ List:[...thi…

conda 更换镜像究极方法

conda安装软件一直用的北外镜像,但是我租的服务器机构IP好像最近被屏蔽了,一直无法使用。机构内部搭了本地镜像。 在更换本地镜像(修改.condarc文件)后,新建环境可以正常使用本地镜像,但是之前建的环境依旧…

dify基础之prompts

摘要:在大型语言模型(LLM)应用中,Prompt(提示词)是连接用户意图与模型输出的核心工具。本文从概念、组成、设计原则到实践案例,系统讲解如何通过Prompt解锁LLM的潜能,提升生成内容的…