📚 IGCSE OCR Computer Science: Operating Systems Key Points | IGCSE OCR 计算机:操作系统考点精讲
The operating system (OS) is the most essential piece of system software that manages both hardware and software resources, and provides common services for computer programs. For the OCR IGCSE Computer Science exam, understanding the role and functions of an operating system is crucial. This revision guide covers all the key points you need to know, from memory management to interrupt handling, presented in a clear and bilingual format.
操作系统(OS)是计算机中最关键的系统软件,它管理着硬件和软件资源,并为应用程序提供基础服务。在 OCR IGCSE 计算机科学考试中,理解操作系统的作用与功能至关重要。本复习指南涵盖所有你需要掌握的考点,从内存管理到中断处理,以清晰的双语形式为你梳理每一个要点。
1. What is an Operating System? | 什么是操作系统?
An operating system is a suite of programs that acts as an interface between the user, application software, and the computer hardware. It controls the execution of programs, manages resources, and provides a user-friendly environment. Without an OS, a computer would be almost impossible to use for the average person.
操作系统是一组程序,它在用户、应用软件和计算机硬件之间扮演着接口的角色。它控制程序的执行,管理计算机资源,并提供用户友好的操作环境。如果没有操作系统,普通用户几乎无法直接使用计算机。
Key roles of an OS include hiding the complexity of hardware, managing the sharing of resources, and ensuring the system runs efficiently and securely. In the OCR IGCSE syllabus, you must be able to explain these general roles and identify the specific functions.
操作系统的核心作用包括隐藏硬件的复杂性、管理资源的共享,以及确保系统高效、安全地运行。在 OCR IGCSE 大纲中,你必须能够解释这些通用角色并列出具体功能。
2. Functions of an Operating System | 操作系统的功能
The operating system performs several essential functions, which can be remembered using the acronym ‘MIFFS’: Memory management, Interface (user), File management, multi-tasking, and Security. Additionally, it handles peripheral management and interrupts. These functions ensure the smooth operation of the computer.
操作系统执行多个关键功能,可以用’MIFFS’这个缩写帮助记忆:内存管理(Memory)、用户界面(Interface)、文件管理(File)、多任务(multi-tasking)和安全(Security)。此外,它还负责外设管理和中断处理。这些功能保证了计算机的顺畅运行。
According to OCR specifications, you need to describe each function with concrete examples. For instance, memory management involves allocating RAM to different programs, while file management deals with creating, deleting, and organising files on storage devices.
根据 OCR 考试要求,你需要用具体例子描述每一项功能。例如,内存管理涉及为不同程序分配 RAM 空间,而文件管理则负责在存储设备上创建、删除和组织文件。
3. User Interfaces | 用户界面
A user interface allows the user to communicate with the computer system. The operating system provides one or more interfaces, which can be graphical (GUI), command-line (CLI), menu-driven, or natural language. The GUI is the most common type, using windows, icons, menus, and pointers (WIMP).
用户界面允许用户与计算机系统进行交互。操作系统提供一个或多个界面类型,包括图形用户界面(GUI)、命令行界面(CLI)、菜单驱动界面以及自然语言界面。GUI 是最常见的类型,使用窗口、图标、菜单和指针(WIMP)。
In a GUI, users interact by clicking icons and selecting from menus, which makes it intuitive but requires more system resources. A CLI, on the other hand, requires the user to type textual commands. It is less intuitive but can be more efficient for expert users and uses fewer resources.
在 GUI 中,用户通过点击图标和选择菜单进行交互,这很直观但需要更多的系统资源。另一方面,CLI 要求用户输入文本命令,它虽然不太直观,但对专业用户来说可能更高效,且占用更少的资源。
For the exam, you should be able to compare these interfaces and justify their use in different scenarios. A CLI might be preferred for server management or task automation, while a GUI is suited for general-purpose and touch-based devices.
考试中,你应当能够比较这些界面,并证明它们在不同场景中的适用性。CLI 可能更适合服务器管理或任务自动化,而 GUI 适用于通用设备和触摸屏设备。
4. Memory Management | 内存管理
Memory management is the process of controlling and coordinating computer memory, assigning blocks to various running programs to optimise overall system performance. The OS keeps track of which parts of RAM are in use and which are free, and allocates memory when a program requests it.
内存管理是控制和协调计算机内存的过程,为正在运行的不同程序分配内存块,以优化整体系统性能。操作系统记录 RAM 中哪些部分正在使用、哪些空闲,并在程序请求时分配内存。
Modern operating systems use virtual memory, which allows the computer to use a portion of secondary storage (like an HDD or SSD) as if it were RAM when physical RAM is full. This enables larger or more programs to run, though accessing data from disk is much slower than from RAM, which can cause performance to drop.
现代操作系统使用虚拟内存技术,当物理 RAM 满载时,允许计算机将辅助存储器(如硬盘或固态硬盘)的一部分当作 RAM 来使用。这使得更大或更多的程序能够运行,但从磁盘读写数据的速度远慢于 RAM,可能导致性能下降。
When RAM becomes scarce, the OS moves data that is not currently needed from RAM to a special area on the storage drive called the ‘swap area’ or ‘page file’. This process is known as paging or swapping.
当 RAM 变得紧张时,操作系统会将当前不需要的数据从 RAM 转移到存储驱动器上一个称为’交换区’或’页面文件’的特殊区域。这个过程称为分页或交换。
5. Multitasking and Process Management | 多任务与进程管理
Multitasking allows multiple programs to appear to run at the same time. On a single-core processor, the OS rapidly switches between programs, giving each a small slice of processor time. On multi-core processors, tasks can genuinely be executed simultaneously.
多任务处理允许多个程序看起来同时在运行。在单核处理器上,操作系统快速切换程序,为每个程序分配一小段处理器时间。在多核处理器上,任务可以真正地同时执行。
The OS scheduler decides the order in which processes are executed. While you do not need to learn complex scheduling algorithms for IGCSE, you should understand that the OS ensures each program gets a fair share of processing time and that high-priority tasks are handled promptly. This also prevents a single program from hogging the entire CPU.
操作系统的调度程序决定进程执行的顺序。虽然 IGCSE 不需要学习复杂的调度算法,但你应当明白操作系统会确保每个程序获得公平的处理器时间,并确保高优先级任务得到及时处理。这也防止了单个程序独占整个 CPU。
Process management also includes handling the states of a process: ready, running, or blocked (e.g. waiting for an input/output operation). Interrupts play a vital role in switching between these states.
进程管理还包括处理进程的不同状态:就绪态、运行态或阻塞态(例如等待输入/输出操作)。中断在状态切换中起着关键作用。
6. Peripheral Management and Device Drivers | 外设管理与设备驱动程序
Peripheral management involves controlling and communicating with input, output, and storage devices such as keyboards, mice, printers, and cameras. The OS uses a piece of software called a device driver for each piece of hardware. The driver acts as a translator between the OS and the specific hardware.
外设管理涉及对输入、输出和存储设备(如键盘、鼠标、打印机、摄像头等)的控制和通信。操作系统为每一类硬件使用一个称为设备驱动程序的软件。驱动程序充当操作系统与特定硬件之间的翻译器。
When an application wants to print a document, it sends a generic print request to the OS. The OS then passes this to the printer driver, which converts the request into commands that the specific model of printer understands. This abstraction means application software does not need to know the details of every hardware device.
当应用程序要打印文档时,它会向操作系统发送通用的打印请求。操作系统再将这个请求传递给打印机驱动程序,驱动程序将请求转换为该特定型号打印机能够理解的指令。这种抽象意味着应用软件不需要了解每种硬件设备的细节。
Device drivers are loaded into the kernel or can be loaded when a device is connected. Plug-and-play technology allows the OS to automatically detect and configure new hardware by locating the appropriate driver.
设备驱动程序被加载到系统内核中,也可以在设备连接时加载。即插即用技术允许操作系统自动检测并配置新硬件,方法是定位合适的驱动程序。
7. File Management | 文件管理
File management is the function of the OS that organises, stores, retrieves, and manages data files on secondary storage devices. The OS provides a logical structure of directories (or folders) and files, making it easy for the user to navigate and locate data.
文件管理是操作系统的一项功能,负责在辅助存储设备上组织、存储、检索和管理数据文件。操作系统提供了目录(或文件夹)和文件的逻辑结构,使用户能够轻松浏览和定位数据。
Typical file management operations include creating, deleting, renaming, copying, and moving files, as well as setting file attributes such as read-only or hidden. The OS also maintains metadata about each file, such as its size, creation date, and location on the disk.
典型的文件管理操作包括创建、删除、重命名、复制、移动文件,以及设置文件属性(如只读或隐藏)。操作系统还维护每个文件的元数据,例如文件大小、创建日期和在磁盘上的物理位置。
The file system (e.g. NTFS for Windows, ext4 for Linux) determines how data is physically stored and retrieved. For the exam, you should know that files are broken into blocks and stored in scattered locations on the disk, managed via a file allocation table (FAT) or similar structure.
文件系统(如 Windows 的 NTFS,Linux 的 ext4)决定了数据在物理上如何存储和检索。考试中,你应知道文件被分割成数据块,分散存储在磁盘各处,并通过文件分配表(FAT)或类似结构进行管理。
8. Security and User Accounts | 安全与用户账户
The operating system is responsible for enforcing security policies, managing user accounts, and controlling access to system resources. Each user is given a unique username and password to log on. User accounts can be assigned different access rights, such as standard user or administrator.
操作系统负责实施安全策略、管理用户账户以及控制对系统资源的访问。为每个用户分配唯一的用户名和密码来登录。用户账户可以被赋予不同的访问权限,例如标准用户或管理员。
Account control mechanisms prevent unauthorised access to confidential files and system settings. An administrator can install software and change system configurations, while a standard user typically cannot. The OS also implements file-level permissions, limiting who can read, write, or execute a file.
账户控制机制防止未经授权访问机密文件和系统设置。管理员可以安装软件和更改系统配置,而标准用户通常不能。操作系统还实施文件级别的权限,限制谁可以读取、写入或执行文件。
Other security functions include automatic screen lock after a period of inactivity, enforcing strong password policies, and integrating with encryption tools like BitLocker or FileVault to protect data on the storage drive.
其他安全功能包括一段时间不操作后自动锁定屏幕、强制执行强密码策略,以及与诸如 BitLocker 或 FileVault 等加密工具集成,以保护存储驱动器上的数据。
9. Interrupts and Interrupt Handling | 中断与中断处理
An interrupt is a signal sent to the processor to request immediate attention. Interrupts can come from hardware (e.g. a keyboard key press, a mouse move, a printer signalling readiness) or from software (e.g. a program error, a system call). They are crucial for real-time responsiveness.
中断是发送给处理器的一个信号,要求立即关注处理。中断可以来自硬件(如按下键盘按键、鼠标移动、打印机就绪信号),也可以来自软件(如程序错误、系统调用)。中断对于即时响应至关重要。
When the processor receives an interrupt, it suspends its current task, saves its state (the contents of registers and program counter), and executes the appropriate interrupt service routine (ISR) stored in the interrupt vector table. After handling the interrupt, the processor resumes the previous task.
当处理器接收到中断时,它会暂停当前任务,保存其状态(寄存器和程序计数器的内容),并执行存储在中断向量表中的相应中断服务程序(ISR)。处理完中断后,处理器恢复之前的任务。
Interrupts have priorities; for example, a power failure interrupt has the highest priority and must be handled immediately. Lower-priority interrupts may be masked or delayed until higher-priority ones are completed. This mechanism prevents loss of data and ensures stable system operation.
中断具有优先级;例如,电源故障中断具有最高优先级,必须立即处理。较低优先级的中断可能被屏蔽或延迟,直到高优先级中断处理完毕。这种机制防止数据丢失,确保系统稳定运行。
10. Types of Operating Systems | 操作系统的类型
Although the OCR IGCSE syllabus focuses on the general-purpose OS found in personal computers (like Windows, Linux, macOS), it is useful to be aware of other types. Real-time operating systems (RTOS) are used in environments where tasks must be processed within strict time limits, such as in aircraft control or medical devices.
虽然 OCR IGCSE 大纲主要关注个人计算机中的通用操作系统(如 Windows、Linux、macOS),但了解其他类型也很有帮助。实时操作系统(RTOS)用于必须在严格时间内处理任务的环境,例如飞机控制系统或医疗设备。
Mobile operating systems (e.g. Android, iOS) are optimised for touch-screen interaction, battery life, and wireless connectivity. Server operating systems are designed to manage network resources and serve multiple clients simultaneously. Embedded operating systems run on dedicated hardware, like microcontrollers in a washing machine.
移动操作系统(如 Android、iOS)针对触摸屏交互、电池续航和无线连接进行了优化。服务器操作系统设计用于管理网络资源并同时为多个客户端提供服务。嵌入式操作系统运行在专用硬件上,如洗衣机中的微控制器。
For the exam, you should focus on the functions that all these OS types share, particularly the core roles of resource management and providing a platform for software. The emphasis is always on the desktop/multitasking OS model.
考试中,你需要关注所有这些操作系统类型共有的功能,特别是资源管理和提供软件平台的核心角色。重点始终是桌面/多任务操作系统模型。
11. Utility Software vs Operating System | 实用软件与操作系统
Utility software is part of system software but is distinct from the operating system itself. Utilities perform specific maintenance or housekeeping tasks that help to keep the computer running efficiently and securely. Examples include antivirus, disk defragmentation, backup, and compression tools.
实用软件属于系统软件的一部分,但与操作系统本身有所区别。实用程序执行特定的维护或内务处理任务,帮助计算机保持高效、安全地运行。例子包括防病毒软件、磁盘碎片整理程序、备份工具和压缩工具。
While the OS provides the essential platform and core functions, utilities are often included along with the OS or can be installed separately. For instance, Windows includes a built-in disk cleanup utility, but it is not a fundamental function of the OS; it could be provided by a third-party tool instead.
虽然操作系统提供了基本的平台和核心功能,但实用程序通常随操作系统一起提供,也可以单独安装。例如,Windows 包含一个内置的磁盘清理实用程序,但这并不是操作系统的根本功能;它可以由第三方工具提供。
It is a common exam question to distinguish between the role of the OS and that of utility software. Remember: the OS manages the fundamental execution environment, while utilities are tools that optimise or protect that environment.
区分操作系统和实用软件的作用是常见的考试题目。请记住:操作系统管理基本的执行环境,而实用程序是优化或保护该环境的工具。
12. Exam Tips | 考试技巧
When answering OS questions in the OCR IGCSE exam, always use precise terminology. For example, instead of saying ‘the computer runs many programs at once’, say ‘the OS enables multi-tasking by scheduling processor time and managing memory allocation’.
在 OCR IGCSE 考试中回答操作系统相关问题时,务必使用准确的术语。例如,不要只说’计算机同时运行许多程序’,而要说’操作系统通过调度处理器时间和管理内存分配来实现多任务处理’。
Demonstrate your understanding by linking functions to their purpose. For memory management: ‘The OS allocates RAM to active programs and uses virtual memory when RAM is full, preventing programs from crashing due to insufficient memory.’ Always include the ‘why’ behind the ‘what’.
通过将功能与其目的联系起来来展示你的理解。对于内存管理:’操作系统为活动程序分配 RAM,并在 RAM 用完时使用虚拟内存,防止程序因内存不足而崩溃。’始终在’是什么’之后说明’为什么’。
Use real-world analogies in longer-answer questions if appropriate. For example, compare interrupts to a person receiving an urgent phone call while working: they pause the current work, note where they were, answer the phone, and then return to the work. This shows a deeper level of comprehension.
在较长答案的问题中,如果合适的话可以使用现实世界的类比。例如,将中断比作某人在工作时接到一个紧急电话:他们暂停手头的工作,记录下进度,接听电话,然后返回继续工作。这展示了你对概念的深层理解。
Finally, practise drawing simple diagrams such as the interrupt handling process or a layered diagram showing the OS between user and hardware. Even if the exam does not require a drawing, being able to visualise the concept solidifies your knowledge.
最后,练习绘制简单的示意图,例如中断处理过程或显示操作系统介于用户与硬件之间的层次结构图。即使考试不要求绘图,能够将概念可视化也会巩固你的知识。
Published by TutorHao | Computer Science Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)