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

发布时间:2026/10/9 3:19:15
《操作系统》英文笔记(一): 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.

关于本文作者

来自尧图内容编辑团队

尧图内容编辑团队 内容团队

尧图内容编辑团队

本文由尧图网络内容编辑团队执笔。团队由资深项目经理、前端工程师与设计师组成,所有内容均来自亲手交付的真实项目,先讲清问题、再给出可落地的解法。尧图深耕北京网站建设十年,服务过京华建材集团、智造科技等各行业客户,把一线经验沉淀为可复用的行业观察。

  • 十年建站经验,覆盖建材、制造、服务、文创等
  • 项目经理把关选题与事实准确性
  • 工程师与设计师联合撰写专业细节
  • 统一编辑规范,保证文风与排版一致
  • 每月复盘转化数据,迭代选题方向

延伸阅读

相关资讯与近期热门内容

深度阅读推荐

建站决策前值得细读的三篇

网站改版的5个关键决策
2024-08-12

网站改版的5个关键决策

什么时候该改版、改到什么程度、如何避免流量掉光,京华建材集团改版复盘给出答案。

获取专属建站方案

看完文章,把您的行业与预算告诉我们,免费获取一份量身定制的官网建设方案与报价。

立即免费咨询