📚 IGCSE CIE Computer Science: Operating Systems – Key Points & Revision | 操作系统 考点精讲
An operating system (OS) is the most fundamental software that runs on a computer. It manages hardware resources, provides a user interface, and enables applications to function. This article breaks down every essential concept you need for the IGCSE CIE Computer Science exam, with clear explanations in both English and Chinese, covering functions, memory, processes, security, and more.
操作系统是计算机上运行的最基本的软件。它管理硬件资源,提供用户界面,并使应用程序能够运行。本文分解了 IGCSE CIE 计算机科学考试所需的每一个核心概念,以清晰的中英双语解释涵盖功能、内存、进程、安全等内容。
1. What is an Operating System? | 什么是操作系统?
An operating system is system software that acts as an interface between the user, application software, and the computer hardware. It hides the complexity of the hardware and provides a convenient environment for programs to execute. Without an OS, each application would need to include code to directly control every piece of hardware, making software development extremely inefficient.
操作系统是一种系统软件,它充当用户、应用软件和计算机硬件之间的接口。它隐藏了硬件的复杂性,为程序的执行提供了一个方便的环境。如果没有操作系统,每个应用程序都需要包含直接控制每一件硬件的代码,这将使软件开发极其低效。
The OS is loaded into memory when the computer boots up; this process is called booting. The kernel is the core part of the OS that remains in main memory and manages the most critical tasks. Common examples: Microsoft Windows, macOS, Linux, Android, iOS.
计算机启动时操作系统被加载到内存中;这个过程称为引导。内核是操作系统中保留在主存中的核心部分,管理着最关键的任务。常见例子:微软 Windows、macOS、Linux、Android、iOS。
2. Functions of an Operating System | 操作系统的功能
The OS performs several vital functions that can be remembered with the acronym ‘MUMPS’: Memory management, User interface, Multitasking, Peripheral management, Security and file management. CIE expects you to describe each function and explain why it is necessary.
操作系统执行几项关键功能,可以用首字母缩略词 ‘MUMPS’ 来记忆:内存管理、用户界面、多任务处理、外设管理、安全与文件管理。CIE 希望你描述每个功能并解释其必要性。
Memory management ensures that each program and data has its own space in RAM, preventing conflicts. User interface provides a way for the user to interact with the computer. Multitasking allows multiple programs to appear to run simultaneously. Peripheral management uses device drivers to communicate with hardware. Security controls access through user accounts and passwords. File management organizes data on storage devices into folders and files, handling reading, writing, copying, and deletion.
内存管理确保每个程序和数据在 RAM 中有自己的空间,防止冲突。用户界面为用户提供了与计算机交互的方式。多任务处理允许多个程序看似同时运行。外设管理使用设备驱动程序与硬件通信。安全通过用户账户和密码控制访问。文件管理将存储设备上的数据组织成文件夹和文件,处理读取、写入、复制和删除。
3. User Interfaces | 用户界面
There are three main types of user interface: Graphical User Interface (GUI), Command Line Interface (CLI), and Menu‑based Interface. A GUI uses windows, icons, menus, and pointers (WIMP). It is intuitive and user‑friendly, making it ideal for most everyday users. However, it uses more memory and processing power.
用户界面主要有三种类型:图形用户界面 (GUI)、命令行界面 (CLI) 和基于菜单的界面。GUI 使用窗口、图标、菜单和指针 (WIMP)。它直观且对用户友好,非常适合大多数日常用户。但它需要更多的内存和处理能力。
A CLI requires the user to type commands. It is less intuitive but can be far more powerful and efficient for expert users, especially when performing batch operations or automating tasks. It also uses fewer system resources. Menu‑based interfaces present a list of options and are often used in ATMs or information kiosks.
CLI 要求用户输入命令。它不太直观,但对专业用户来说可以更强大、更高效,尤其是在执行批量操作或自动化任务时。它还使用更少的系统资源。基于菜单的界面呈现选项列表,常用于 ATM 或信息亭。
4. Memory Management | 内存管理
Memory management involves allocating RAM to different programs and ensuring that one program does not interfere with another’s memory space. The OS keeps track of which parts of memory are in use and which are free. It uses techniques like paging and segmentation.
内存管理涉及将 RAM 分配给不同的程序,并确保一个程序不会干扰另一个程序的内存空间。操作系统跟踪哪些内存部分正在使用,哪些是空闲的。它使用诸如分页和分段之类的技术。
In paging, memory is divided into fixed‑size blocks called pages. Programs are split into pages that can be loaded into any available page frames in RAM; this avoids the need for a program to occupy a contiguous block of memory. Virtual memory extends the apparent size of RAM by using a portion of the hard disk. When RAM is full, pages not currently needed are swapped out to disk, and brought back when needed. This swapping causes disk thrashing if done excessively, slowing the system down.
在分页中,内存被划分为称为页的固定大小块。程序被分割成页,可以加载到 RAM 中任何可用的页框中;这避免了程序必须占用连续内存块的需要。虚拟内存通过使用一部分硬盘空间来扩展 RAM 的视在大小。当 RAM 已满时,当前不需要的页会被换出到磁盘,并在需要时调回。如果交换过度频繁,会导致磁盘抖动,从而减慢系统速度。
5. Process Management & Multitasking | 进程管理与多任务处理
A process is a program in execution. The OS manages processes, allocating CPU time, and handling interrupts. Multitasking is achieved by rapidly switching the CPU between processes, giving the illusion of simultaneous execution. The OS uses a scheduler to decide which process runs next, based on priority, fairness, or resource requirements.
进程是执行中的程序。操作系统管理进程、分配 CPU 时间并处理中断。多任务处理是通过在进程之间快速切换 CPU 来实现的,给人以同时执行的错觉。操作系统使用调度程序来决定下一个运行哪个进程,依据优先级、公平性或资源需求。
The scheduler maintains queues: a ready queue of processes waiting to run, and a blocked queue of processes waiting for an event (e.g., I/O completion). Context switching is the mechanism of saving the state of a currently running process and restoring the state of the next process. It has a small overhead but is essential for multitasking.
调度程序维护多个队列:等待运行的进程的就绪队列,以及等待事件(如 I/O 完成)的进程的阻塞队列。上下文切换是保存当前运行进程的状态并恢复下一个进程状态的机制。它有一些微小的开销,但对于多任务处理来说是必不可少的。
Interrupts are signals sent by hardware or software to get the CPU’s attention. When an interrupt occurs, the OS suspends the current process, saves its state, and services the interrupt (e.g., key press, mouse movement). After servicing, it resumes the previous process or chooses another.
中断是由硬件或软件发出的信号,用于引起 CPU 的注意。当中断发生时,操作系统暂停当前进程,保存其状态,并处理中断(例如,按键、鼠标移动)。处理完毕后,它恢复之前的进程或选择另一个进程。
6. File Management | 文件管理
The OS provides a logical view of files and folders, hiding the physical layout on storage media. It handles file naming, organisation into hierarchical directories, and access rights. Key file operations include create, delete, open, close, read, write, rename, and copy.
操作系统提供了文件和文件夹的逻辑视图,隐藏了存储介质上的物理布局。它处理文件命名、组织成分层目录以及访问权限。关键的文件操作包括创建、删除、打开、关闭、读取、写入、重命名和复制。
File extensions (e.g., .txt, .jpg, .exe) help the OS identify the file type and associate it with an appropriate application. The OS also maintains metadata such as file size, date created, date modified, and the starting cluster on disk. Defragmentation is a utility that reorganises fragmented files so that each file’s clusters are contiguous, speeding up read/write operations (relevant for HDDs, not SSDs).
文件扩展名(例如 .txt、.jpg、.exe)帮助操作系统识别文件类型并将其与适当的应用程序关联起来。操作系统还维护元数据,如文件大小、创建日期、修改日期以及磁盘上的起始簇。碎片整理是一种实用工具,用于重新组织碎片化的文件,使每个文件的簇连续,从而加快读/写操作(与 HDD 相关,不适用于 SSD)。
7. Peripheral Management & Device Drivers | 外设管理与设备驱动程序
Peripherals include input devices (keyboard, mouse), output devices (printer, monitor), and storage drives. The OS uses device drivers—small programs that translate generic OS commands into commands specific to a hardware device. Each piece of hardware requires its own driver.
外设包括输入设备(键盘、鼠标)、输出设备(打印机、显示器)和存储驱动器。操作系统使用设备驱动程序——这些小程序将通用的操作系统命令翻译为特定硬件设备的命令。每一件硬件都需要自己的驱动程序。
When a new device is connected, the OS detects it (plug and play), identifies it, and attempts to install the appropriate driver. If the correct driver is not available, the device may not function or may use a generic driver with limited functionality. Buffering is used to temporarily store data being transferred between a fast processor and a slow peripheral, so the CPU does not idle.
当连接新设备时,操作系统会检测到它(即插即用)、识别它,并尝试安装适当的驱动程序。如果正确的驱动程序不可用,设备可能无法工作,或者可能使用功能有限的通用驱动程序。缓冲用于临时存储在快速处理器和慢速外设之间传输的数据,这样 CPU 就不会空闲。
8. Security, Access Control & User Accounts | 安全、访问控制与用户账户
The OS provides security through authentication (username/password), access rights, and encryption. User accounts can be administrator or standard. An administrator has full control over the system, can install software, and manage other accounts. Standard users have limited permissions.
操作系统通过身份验证(用户名/密码)、访问权限和加密来提供安全。用户账户可以是管理员或标准用户。管理员对系统拥有完全控制权,可以安装软件并管理其他账户。标准用户权限有限。
Access rights determine what a user can do with a file or folder: read, write, execute, delete. The OS enforces these rights to protect sensitive data and prevent accidental or malicious damage. Firewall features (often integrated into the OS) monitor incoming and outgoing network traffic based on predetermined security rules.
访问权限决定用户可以对文件或文件夹执行什么操作:读取、写入、执行、删除。操作系统强制执行这些权限以保护敏感数据并防止意外或恶意的破坏。防火墙功能(通常集成在操作系统中)根据预定义的安全规则监控传入和传出的网络流量。
9. Utility Software vs Operating System | 实用软件与操作系统
Students often confuse utility software with the OS. A utility is a type of system software that performs a specific maintenance or housekeeping task. Examples: antivirus, disk defragmenter, backup software, compression tools, disk cleanup. The OS typically includes some basic utilities, but they are not part of the core OS functions tested in the syllabus unless explicitly stated.
学生们经常混淆实用软件与操作系统。实用软件是一种系统软件,执行特定的维护或内务管理任务。例如:防病毒软件、磁盘碎片整理程序、备份软件、压缩工具、磁盘清理。操作系统通常包含一些基本的实用工具,但除非明确说明,它们不属于考纲中测试的核心操作系统功能。
Key distinction: the OS provides a platform and manages resources continuously; utilities are discrete programs that help maintain the system. In exams, if asked to give examples of OS functions, do not list antivirus—that is a utility.
关键区别:操作系统提供一个平台并持续管理资源;实用程序是帮助维护系统的独立程序。在考试中,如果要求列出操作系统的功能,不要列出防病毒软件——那属于实用软件。
10. Types of Operating Systems | 操作系统的类型
There are several categories of OS, each designed for a particular environment: real‑time OS (RTOS) for systems that require immediate processing (e.g., airbag control, industrial robots); single‑user, multi‑tasking (most personal computers); multi‑user (servers where many users access simultaneously); distributed OS (manages a group of independent computers and makes them appear as a single computer); embedded OS (for devices like microwaves, washing machines, smart TVs).
操作系统有几种类型,每种都是为特定环境设计的:实时操作系统 (RTOS) 用于需要立即处理的系统(例如,安全气囊控制、工业机器人);单用户多任务(大多数个人电脑);多用户(多用户同时访问的服务器);分布式操作系统(管理一组独立的计算机并使它们看起来像一台计算机);嵌入式操作系统(用于微波炉、洗衣机、智能电视等设备)。
For IGCSE, the most relevant are real‑time and embedded operating systems. An RTOS must process data as it comes in, without buffer delays; a failure to respond in time could be catastrophic. An embedded OS is often stored in ROM and has limited functionality tailored to the device.
对于 IGCSE,最相关的是实时和嵌入式操作系统。RTOS 必须在数据传入时立即处理,不能有缓冲延迟;未能及时响应可能是灾难性的。嵌入式操作系统通常存储在 ROM 中,具有针对设备定制的有限功能。
11. Interrupts in Detail | 中断详解
An interrupt is a signal that causes the CPU to pause its current task and execute an interrupt service routine (ISR). Interrupts can be generated by hardware (e.g., mouse click, keyboard press, disk ready) or software (e.g., division by zero, system calls). The OS uses an interrupt vector table that holds the addresses of ISRs for each interrupt type.
中断是一种信号,导致 CPU 暂停当前任务并执行中断服务例程 (ISR)。中断可以由硬件(例如,鼠标点击、键盘按下、磁盘就绪)或软件(例如,除以零、系统调用)产生。操作系统使用中断向量表,其中保存了每种中断类型的 ISR 的地址。
When an interrupt occurs, the CPU completes its current instruction, pushes the program counter and registers onto the stack, looks up the ISR address from the vector table, executes the ISR, then pops the saved state and returns to the original task. Prioritisation of interrupts ensures that more urgent tasks are handled first.
当中断发生时,CPU 完成其当前指令,将程序计数器和寄存器压入堆栈,从向量表中查找 ISR 地址,执行 ISR,然后弹出保存的状态并返回原始任务。中断的优先级确保更紧急的任务首先被处理。
12. Exam Tips and Common Errors | 考试技巧与常见错误
Many candidates lose marks by describing an operating system simply as 'a program that runs the computer'. Be precise: the OS is system software that provides a platform for application software and manages hardware resources. Use the mark allocation to guide the depth of your answer—for a 3‑mark question, give at least three distinct points.
许多考生因为将操作系统简单描述为“运行计算机的程序”而失分。要精确:操作系统是一种系统软件,为应用软件提供平台并管理硬件资源。利用分值来指导你的答案深度——对于 3 分题,至少给出三个不同的要点。
Another pitfall is mixing up memory and storage. RAM is volatile memory used for currently running programs and data; the OS manages it. Storage (hard disk, SSD) is non‑volatile and holds files long‑term. Do not say an OS ‘manages storage’ when you mean memory management—they are different functions.
另一个陷阱是混淆内存和存储。RAM 是易失性存储器,用于当前正在运行的程序和数据;操作系统管理它。存储(硬盘、SSD)是非易失性的,长期保存文件。当你的意思是指内存管理时,不要说操作系统“管理存储”——它们是不同的功能。
When explaining multitasking, avoid saying programs run ‘at the same time’ on a single‑core processor. Instead, state that the CPU rapidly switches between processes, giving the illusion of concurrent execution. Always link the explanation to the scheduler and contexts.
在解释多任务处理时,避免说程序在单核处理器上“同时”运行。相反,应说明 CPU 在进程之间快速切换,给人一种并发执行的错觉。始终将解释与调度程序和上下文联系起来。
Published by TutorHao | Computer Science Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)

或截图后用「扫一扫 → 相册」选择本图