《操作系统》英文笔记(一): Introduction To OS

发布时间:2026/11/25 11:45:52

《操作系统》英文笔记(一): Introduction To OS 笔者这学期在澳科大当交流生故这学期开始在这里分享澳科大这边课程的笔记先从《操作系统》课程开始吧。What is an Operating System?Most computers have two modes of operation:kernel modeanduser mode.OS runs inkernel mode(also called supervisor mode), which hascomplete access to all hardware and can execute any instruction.Rest of software runs inuser mode, which haslimited capability.Shell or GUI is the lowest level of user mode software.The user does not have to program the hardware directly, because OS hides all the troublesome operations of the hardware.Process is a running image of a program.Users are not working with the OS directly. Whatever programs you run, it behaves as processes.How to interact with the OS?For an ordinary users:OS is a “thing” that is able for them to store programs and run programs.For programmers:OS is a piece of software that allows them to:to interact with the user, by the OS for the I/O interface.to interact with the OS itself, by the OS for the system calls.For hardware driver programmers:OS is a piece of software that allows them to host the driver programs.System CallsKernel is the core of a computer’s OS, with complete control over everything in the system.System callsare the programming interface between processes and the OS kernel. The system calls are usuallyprimitive, important, fundamental.SummaryIn summary, an OS isa piece of software;a resource manager, which manages all the physical devices,a service provider, which provides a set of programming interfaces for processes to access to the resources.ProcessProgram ≠ ProcessA process is anexecution instanceof a program.More than one process can execute the same program code.A process is notbounded to execute just one program!A process is an active entity.A process has itslocal statesconcerning the execution. E.g., which line of codes it is running, and which CPU core (if there are many) it is running on.The local states change while running.Process Relationship (Tree Hierarchy)Process StateRunning (using CPU)Ready (runnable, but temporarily stopped to let another process run)Blocked (cannot run until some external event happens)MemoryMemory HierarchyA program is fetchedfrom hard disk to main memoryby OS.When executed, instructions in the program are fetchedfrom the main memory to CPU.The hierarchy does not just fit the program execution flow, but also forstoring processes, including the states of the processes.Process are stored at different devices controlled by the OS before they get a chance to runbecause there is only a finite number of CPUs (1-2) and only a finite number of processes can be executed“really at the same time”.Global variables, local Variables, dynamically allocated memory, and program code and constantsare the things a process has to stored in memory.File SystemA file system (FS) means the way that a storage device is used.A file systemmustcontain the following components:directories;files;allocated space;free space.Thestable sideof the file system: a file system is abouthow files are stored; apart from files, many other things are stored in the disk.Thedynamic sideof the file system: a file system is also aboutthe operations which update the content of the file system.A FS is independent of an OS:If an OS supports a FS, then the OS can do whatever operations over that storage device.Else, the OS doesn’t know how to read or update the device’s content.
延伸阅读

更多相关文章

2026/11/25 12:37:32

C++优先队列priority_queue详解:从堆原理到Top-K与Dijkstra应用

优先队列(C)这个话题,我确实想好好写一篇。做了这么多年实际项目和算法实现,我一直觉得 STL 里最被低估的容器之一就是std::priority_queue。很多人对vector、map、sort熟得不能再熟,但一提到“动态取最大值/最小值”的…

2026/11/22 10:39:02

前后端分离架构下,团队协作模式如何转型?接口契约与联调实践

这些年我带过不少 Web 项目团队,发现一件特别有意思的事:很多人以为“前后端分离”只是技术架构的升级,换了框架、拆了工程、改了部署方式就完事了。可真把团队拉进去做一两个迭代之后,你会发现最痛的根本不是技术选型&#xff0c…

2026/11/22 11:01:52

HTTP协议深度解析:从400错误到HTTP/3的实战指南

1. 从一次“打不开网页”的故障说起:HTTP 不是教科书里的抽象概念,而是你每次刷新页面时都在真实运行的协议上周帮某高校实验室调试一套远程图像采集系统,设备端能稳定生成JPEG帧,但Web管理界面始终显示“加载中…”——后端日志里…

2026/11/25 12:33:19

苏州考电工证直播怎么高效备考?考前押题帮你省下30天复习时间

苏州考电工证直播怎么高效备考?考前押题帮你省下30天复习时间 工地太忙根本没时间复习考试,你是不是也有这种感觉?每天从早忙到晚,连吃饭的时间都被压缩,更别提抽时间准备电工证考试了。特别是现在电工证考试题型越来越灵活,考点越来越细,没有系统的…

2026/11/25 12:33:19

电工证转出流程全解析 内部消息揭秘怎么转更省事

电工证转出流程全解析 内部消息揭秘怎么转更省事 你是不是也在为“急需特种作业证才能上岗找工作”发愁?电工证转出问题越来越频繁,尤其是在郑州金水区,很多初入行的电工都在问:…

2026/11/25 12:28:19

电工证可以坐汽车吗?内部消息告诉你实操考试别怕挂科

电工证可以坐汽车吗?内部消息告诉你实操考试别怕挂科 实操考试心里没底怕挂科,这事儿真不是你一个人的担心,去年河南省安全技术防范行业协会的内部数据显示,全国每年有超过20%的电工证考生因为实操不熟练直接被淘汰。电工证到底能不能坐汽车?这个问题…

2026/11/24 13:09:03

高压电工证还能年审吗良心建议来了,学历不高也能考!

高压电工证还能年审吗良心建议来了,学历不高也能考! 你是不是也担心,自己学历不高,根本报不上高压电工证?其实不然,现在政策已经非常明确, 高压电工证还能年审 ,而且只要符合条件, 学历不是门槛 , 良心建议…

2026/11/24 13:02:07

吴江的电工证免费培训怎么报名?官方报名入口全解析

吴江的电工证免费培训怎么报名?官方报名入口全解析 你急需特种作业证才能上岗找工作,但不知道从哪里下手?别急,现在就给你讲明白【吴江的电工证免费培训】到底怎么操作,以及怎么通过 官方报名入口…

2026/11/24 0:40:30

电工证复审肃州区的真实经历:别被中介坑了,自己搞定更靠谱

电工证复审肃州区的真实经历:别被中介坑了,自己搞定更靠谱 不知道去哪报名怕被中介坑?这几乎是每个需要办理或复审电工证的人的真实经历。尤其在肃州区,信息不透明、流程复杂、中介收费高又不靠谱,让很多电工从业者感到头疼。作为一个在应急管理和特种作…

2026/11/25 0:04:22

阳泉电工证考试内容怎么考?工地太忙根本没时间复习考试

阳泉电工证考试内容怎么考?工地太忙根本没时间复习考试 工地太忙根本没时间复习考试,很多电工工友都在头疼这个问题。尤其是像阳泉地区,施工进度紧、任务重,一不小心就错过了电工证的考试准备时间。如果你也正在为阳泉电工证考试内容发愁,或者想了解…

2026/11/25 0:04:24

永州电工证在哪里查询通过率揭秘:怕考不过白交培训费?

永州电工证在哪里查询通过率揭秘:怕考不过白交培训费? 你是不是也担心考电工证白交培训费?特别是像永州电工证在哪里查询这种问题,很多学员一上来就问,到底能不能顺利拿到证?其实这背后隐藏着一个 通过率揭秘…

2026/11/25 10:58:53

面向复杂光照与角度的宠物面部识别鲁棒性增强策略

在智慧养宠时代,基于视觉的宠物身份识别技术正逐步从实验室走向家庭应用。然而,与配合度高的人类不同,宠物是典型的“非合作生物识别对象”——它们不会主动配合摄像头调整姿态,更无法控制光照环境。实际应用中,我们常…

2026/11/25 10:51:26

SSM电子书店源码全解析:结构、原理、部署与排错实战

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

还想了解更多?直接咨询顾问

免费诊断 + 免费方案 + 透明报价。

全国咨询热线400-8866-253
免费获取方案
☎咨询二维码 ☎ ↑