📚 IGCSE Edexcel Computer Science: Operating Systems Revision | IGCSE Edexcel 计算机:操作系统考点精讲
An operating system (OS) is the most essential piece of system software on any computing device. It acts as the bridge between the user, application software, and the hardware, ensuring that all resources are used efficiently and fairly. In the IGCSE Edexcel Computer Science syllabus, understanding how an OS manages processes, memory, files, and devices is fundamental to grasping how computers really work. This revision article breaks down every key concept you need to master, with clear bilingual explanations and exam-focused tips.
操作系统是任何计算设备上最重要的系统软件。它充当用户、应用软件与硬件之间的桥梁,确保所有资源得到高效且公平的使用。在IGCSE Edexcel计算机科学教学大纲中,理解操作系统如何管理进程、内存、文件和设备是掌握计算机实际工作原理的基础。本文将通过清晰的双语讲解和以考试为核心的要点,为你分解每一个需要掌握的关键概念。
1. Definition and Purpose of an Operating System | 操作系统的定义与目的
An operating system is a collection of programs that control the hardware of a computer and provide a platform for applications to run. Without an OS, the user would have to manage every hardware component manually, which would be extremely inefficient.
操作系统是一组控制计算机硬件并为应用程序提供运行平台的程序集合。如果没有操作系统,用户将不得不手动管理每个硬件组件,这会极其低效。
The OS hides the complexity of the hardware from the user and application software. It provides a consistent interface, so a program can request a file to be saved without needing to know the details of the hard disk controller or the specific storage blocks.
操作系统向用户和应用软件隐藏了硬件的复杂性。它提供一致的接口,这样程序可以请求保存文件,而无需了解硬盘控制器的细节或具体的存储块。
In Edexcel IGCSE terms, the OS is system software that must be loaded into memory when the computer is switched on – this process is called booting. The bootloader, stored in ROM, loads the kernel of the OS into RAM.
在Edexcel IGCSE术语中,操作系统是一种系统软件,必须在计算机开机时加载到内存中——这个过程称为引导。存储在ROM中的引导加载程序将操作系统的内核加载到RAM中。
2. Core Functions of the Operating System | 操作系统的核心功能
The operating system performs several vital roles that can be grouped into resource management, process management, and the provision of services. The main functions you need to know for the exam are: managing the processor, managing memory, managing input and output devices, managing files, providing a user interface, and handling security.
操作系统执行几个关键角色,可以归纳为资源管理、进程管理和提供服务。考试中你需要知道的主要功能包括:管理处理器、管理内存、管理输入输出设备、管理文件、提供用户界面以及处理安全。
Processor management involves deciding which process gets to use the CPU at any given time. Memory management ensures each process has enough memory to execute, and that one process does not interfere with another's allocated space.
处理器管理涉及决定在任一时刻哪个进程可以使用CPU。内存管理确保每个进程有足够的内存来执行,并且一个进程不会干扰另一个进程的分配空间。
File management organises how data is stored and retrieved on secondary storage. The OS also communicates with hardware through device drivers so that input and output operations work smoothly. All these functions are interconnected to keep the system stable.
文件管理组织数据在辅助存储器上的存储和检索方式。操作系统还通过设备驱动程序与硬件通信,使输入输出操作顺利进行。所有这些功能相互连接,以保持系统的稳定。
3. Processor Management and Multitasking | 处理器管理与多任务处理
The CPU can only execute one instruction at a time, yet modern operating systems appear to run many programs simultaneously. This is achieved through multitasking, where the OS rapidly switches the CPU between processes, giving each a small time slice.
CPU一次只能执行一条指令,但现代操作系统似乎同时运行许多程序。这是通过多任务处理实现的,操作系统在进程间快速切换CPU,为每个进程分配一小段的时间片。
The OS uses a scheduler to decide the order in which processes access the processor. Priority-based scheduling ensures that high-priority tasks like system background services or real-time processes get more CPU time than user applications.
操作系统使用调度程序来决定进程访问处理器的顺序。基于优先级的调度确保高优先级任务(如系统后台服务或实时进程)比用户应用程序获得更多的CPU时间。
Each process is represented by a Process Control Block (PCB) that stores the program counter, registers, and memory allocation of that process. When a context switch occurs, the OS saves the current state and loads the next process's state from its PCB.
每个进程由一个进程控制块(PCB)表示,其中存储了该进程的程序计数器、寄存器和内存分配信息。当发生上下文切换时,操作系统保存当前状态并从其PCB加载下一个进程的状态。
You should be able to explain that multitasking gives the illusion of parallelism on a single-core processor. On multi-core systems, true parallel execution occurs, but the OS still manages which threads run on which core.
你应该能够解释,多任务处理在单核处理器上给出了并行运行的假象。在多核系统上,会发生真正的并行执行,但操作系统仍管理哪些线程在哪个核心上运行。
4. Memory Management Concepts | 内存管理概念
Memory management is responsible for allocating RAM space to processes and freeing it when no longer needed. The operating system keeps track of which parts of memory are in use and which are free, using techniques like paging and segmentation.
内存管理负责为进程分配RAM空间,并在不再需要时将其释放。操作系统使用分页和分段等技术,跟踪哪些内存部分正在使用,哪些是空闲的。
With paging, memory is divided into fixed-size blocks called pages. Physical memory is divided into frames of the same size. When a process needs memory, its pages are loaded into any available frames, and a page table maps logical addresses to physical addresses.
在分页中,内存被划分为称为页的固定大小块。物理内存被划分为相同大小的帧。当进程需要内存时,其页被加载到任何可用的帧中,页表将逻辑地址映射到物理地址。
This solves the problem of external fragmentation because pages can be placed non-contiguously. If there is not enough physical RAM, the OS can use virtual memory by moving less frequently used pages to a swap area on the hard disk.
这解决了外部碎片问题,因为页可以不连续放置。如果没有足够的物理RAM,操作系统可以通过将不常用的页移动到硬盘上的交换区域来使用虚拟内存。
In the IGCSE Edexcel exam, you may be asked to describe why virtual memory is necessary and the trade-off: it allows more programs to run but is much slower than RAM because disk access times are higher.
在IGCSE Edexcel考试中,你可能会被要求描述虚拟内存为何必要以及其权衡:它允许更多程序运行,但比RAM慢得多,因为磁盘访问时间更长。
5. File Management | 文件管理
The file management system organises data into files and directories, providing a logical structure for storage. The OS handles file creation, deletion, reading, writing, and the setting of access permissions.
文件管理系统将数据组织为文件和目录,为存储提供逻辑结构。操作系统处理文件的创建、删除、读取、写入以及访问权限的设置。
Files are stored in a hierarchical directory structure, usually starting from a root directory. This makes navigation intuitive for the user and allows efficient searching. Each file has metadata stored in a file control block, including its name, size, type, and location on disk.
文件存储在分层目录结构中,通常从根目录开始。这使得用户的导航直观,并允许高效搜索。每个文件都有存储在文件控制块中的元数据,包括其名称、大小、类型以及磁盘上的位置。
The OS uses a file allocation method, such as linked allocation or indexed allocation, to keep track of which blocks belong to which file. For Edexcel, you do not need to know the detailed algorithms but should understand that the OS has to map the logical file view to physical blocks on the drive.
操作系统使用文件分配方法,如链接分配或索引分配,来跟踪哪些块属于哪个文件。对于Edexcel,你不需要了解详细算法,但应理解操作系统必须将逻辑文件视图映射到驱动器上的物理块。
Security within file management includes user authentication and access control lists (ACLs) that decide who can read, write, or execute a file. This prevents unauthorised access and maintains data integrity.
文件管理中的安全性包括用户认证和访问控制列表(ACL),它们决定谁可以读取、写入或执行文件。这防止了未经授权的访问并维护数据完整性。
6. Input/Output Management and Device Drivers | 输入/输出管理与设备驱动程序
Every hardware device, from the keyboard to the network card, communicates with the OS through a device driver. A device driver is specialised software that translates generic OS commands into specific instructions that the hardware understands.
从键盘到网卡,每个硬件设备都通过设备驱动程序与操作系统通信。设备驱动程序是一种专用软件,它将通用的操作系统命令转换为硬件理解的特定指令。
The I/O management layer buffers data, handles interrupts, and ensures that slower devices do not stall the CPU. For example, when a printer is printing a large document, the OS uses a spooler to queue print jobs and send them to the printer at its own pace.
I/O管理层缓冲数据、处理中断,并确保较慢的设备不会使CPU停滞。例如,当打印机打印大型文档时,操作系统使用后台打印程序对打印作业进行排队,并按其自身速度将其发送给打印机。
The advantage of using device drivers is modularity. A new device can be added to the system simply by installing its driver, without modifying the OS kernel. This concept is often tested in the context of plug-and-play functionality.
使用设备驱动程序的优点是模块化。只需安装其驱动程序即可向系统添加新设备,而无需修改操作系统内核。这一概念常在即插即用功能的背景下进行测试。
You should be prepared to explain that if a device is not working correctly, the likely cause is a missing, outdated, or corrupt device driver, not necessarily a hardware fault.
你应该准备好解释,如果设备工作不正常,可能的原因是丢失、过时或损坏的设备驱动程序,而不一定是硬件故障。
7. Interrupt Handling | 中断处理
An interrupt is a signal sent to the processor to indicate an event that needs immediate attention. Interrupts can be generated by hardware (e.g., a key press, disk completion) or by software (e.g., a program error like division by zero).
中断是发送给处理器的一个信号,指示需要立即关注的事件。中断可以由硬件(例如按键、磁盘操作完成)或软件(例如除零等程序错误)产生。
When an interrupt occurs, the CPU suspends the current process, saves its state to the stack, and jumps to a specific memory address that holds the Interrupt Service Routine (ISR). The ISR handles the event and then instructs the processor to restore the previous state and resume the interrupted process.
当中断发生时,CPU暂停当前进程,将其状态保存到堆栈中,并跳转到保存中断服务程序(ISR)的特定内存地址。ISR处理事件,然后指示处理器恢复先前的状态并继续被中断的进程。
The operating system maintains an interrupt vector table that contains the addresses of all ISRs. Prioritised interrupts allow critical tasks, such as a power failure warning, to be serviced before less urgent ones.
操作系统维护一个中断向量表,其中包含所有ISR的地址。带优先权的中断允许关键任务(如电源故障警告)在较不紧急的任务之前得到服务。
In the exam, you may need to sequence the steps of interrupt handling and distinguish between hardware and software interrupts. Remember that the OS is responsible for managing interrupts, keeping the system responsive.
在考试中,你可能需要排序中断处理的步骤,并区分硬件中断和软件中断。请记住,操作系统负责管理中断,保持系统的响应性。
8. User Interfaces | 用户界面
The user interface is the part of the OS that allows the user to interact with the computer. The two main types are the Command Line Interface (CLI) and the Graphical User Interface (GUI).
用户界面是操作系统的一部分,允许用户与计算机进行交互。两种主要类型是命令行界面(CLI)和图形用户界面(GUI)。
A CLI requires the user to type specific commands. It is less intuitive for beginners, but it uses very little system resources and is powerful for batch processing or remote administration. Scripts can automate repetitive tasks easily.
CLI要求用户输入特定命令。对初学者来说不太直观,但它消耗的系统资源极少,并且对于批处理或远程管理功能强大。脚本可以轻松地自动化重复性任务。
A GUI uses windows, icons, menus, and pointers (WIMP) to allow direct manipulation. It is user-friendly and consistent across applications, but it demands more memory and processor power. Modern operating systems provide both types, with GUI being the default for most users.
GUI使用窗口、图标、菜单和指针(WIMP)实现直接操作。它用户友好且跨应用一致,但需要更多的内存和处理器能力。现代操作系统提供这两种类型,对大多数用户来说GUI是默认界面。
Edexcel questions often ask you to compare CLI and GUI in terms of resource usage, ease of use, and task suitability. You should be able to justify why an embedded system might still use a CLI while a personal computer uses a GUI.
Edexcel考题经常要求你从资源使用、易用性和任务适用性方面比较CLI和GUI。你应该能够说明为什么嵌入式系统可能仍使用CLI,而个人计算机使用GUI。
9. Types of Operating Systems | 操作系统的类型
Operating systems can be categorised based on their intended use and capabilities. The IGCSE syllabus expects you to recognise single-user, multi-user, multi-tasking, real-time, and distributed operating systems.
操作系统可以根据其预期用途和能力进行分类。IGCSE教学大纲要求你识别单用户、多用户、多任务、实时和分布式操作系统。
A single-user, single-tasking OS, such as early MS-DOS, allows only one person to run one program at a time. A single-user, multi-tasking OS, like modern Windows or macOS, lets one user run multiple applications concurrently.
单用户单任务操作系统(如早期MS-DOS)一次只允许一个人运行一个程序。单用户多任务操作系统(如现代Windows或macOS)允许一个用户同时运行多个应用程序。
A multi-user OS, such as Unix, allows several users to access the computer at the same time, often through terminals. The OS shares resources and protects users from each other through file permissions and scheduling policies.
多用户操作系统(如Unix)允许多个用户同时访问计算机,通常通过终端。操作系统通过文件权限和调度策略共享资源,并保护用户彼此隔离。
Real-time operating systems (RTOS) are used in critical systems where processing must happen within a guaranteed time constraint. Examples include airbag control systems and industrial robots. Failure to meet a deadline could be catastrophic, so these systems use special scheduling algorithms.
实时操作系统(RTOS)用于必须在保证的时间限制内完成处理的关键系统。示例包括安全气囊控制系统和工业机器人。未能满足截止时间可能导致灾难性后果,因此这些系统使用特殊的调度算法。
10. Security and Protection Mechanisms | 安全与保护机制
The operating system is responsible for enforcing security policies that protect data and resources from unauthorised access. This begins with user authentication, typically through usernames and passwords, to verify the identity of the person logging in.
操作系统负责执行安全策略,保护数据和资源免受未经授权的访问。这始于用户认证,通常通过用户名和密码来验证登录人的身份。
Once authenticated, the OS controls what a user can do with access control lists and file permissions. For example, a user may have read-only access to a system configuration file but full access to their own documents. Encryption can be applied to stored data for an extra layer of security.
一旦认证通过,操作系统通过访问控制列表和文件权限来控制用户可以执行的操作。例如,用户可能对系统配置文件只有只读权限,但对自己的文档拥有完全访问权限。可以应用加密为存储数据增加一层额外的安全保护。
The OS also protects processes from each other in memory and prevents a single failing program from crashing the whole system. Inter-process protection is maintained by allocating separate address spaces and by using privilege levels (user mode vs kernel mode).
操作系统还在内存中保护进程彼此隔离,防止单个故障程序导致整个系统崩溃。通过分配独立的地址空间和使用特权级别(用户模式与内核模式)来维持进程间保护。
Firewalls, antivirus, and automatic updates are often part of the OS security toolkit. In the exam, you should link security mechanisms to the function of the OS and discuss the importance of keeping the OS updated to patch vulnerabilities. The role of the OS in managing system security is a frequently examined theme.
防火墙、防病毒软件和自动更新通常是操作系统安全工具包的一部分。在考试中,你应该将安全机制与操作系统的功能联系起来,并讨论保持操作系统更新以修补漏洞的重要性。操作系统在管理系统安全方面的角色是一个经常考查的主题。
11. Exam Focus: Common Question Types and Tips | 考试聚焦:常见题型与技巧
Edexcel IGCSE exam papers often test operating systems through short-answer questions, comparison tables, and explanation scenarios. You might be given a description of a computing environment and asked to recommend a type of OS, or asked to state the steps the OS takes when a USB drive is plugged in.
Edexcel IGCSE试卷通常通过简答题、比较表格和解释场景来测试操作系统知识。你可能会遇到给出计算环境描述并要求推荐一种操作系统类型,或者被要求说明当插入U盘时操作系统所执行的步骤。
A typical question: "Explain how the operating system would deal with an interrupt from a mouse click." Model answer outline: (1) CPU suspends current process; (2) saves state; (3) identifies interrupt via vector table; (4) runs ISR; (5) restores state; (6) resumes process. Being able to list these in correct order is crucial.
一道典型题目:“解释操作系统如何处理来自鼠标点击的中断。”标准答案框架:(1)CPU暂停当前进程;(2)保存状态;(3)通过向量表识别中断;(4)运行ISR;(5)恢复状态;(6)继续进程。能够按正确顺序列出这些步骤至关重要。
Comparison questions often involve CLI vs GUI, or paging vs no memory management. Prepare bullet points covering advantages and disadvantages. Use precise terminology like 'context switch', 'page fault', 'device driver', and 'interrupt vector' – these high-mark words show understanding.
比较题常涉及CLI与GUI的比较,或有分页与无内存管理的比较。准备涵盖优缺点的要点清单。使用精确术语,如“上下文切换”、“缺页”、“设备驱动程序”和“中断向量”——这些高分词汇能展现你的理解。
Always connect your answer back to the role of the OS as a resource manager. If asked why an event-driven system is suitable for a traffic light, explain that a real-time OS can prioritise interrupts from sensors to meet strict timing requirements. Practice writing concise definitions for all key terms listed in the specification, and you will be well prepared for your examination.
始终将你的答案联系到操作系统作为资源管理器的角色。如果被问到为什么事件驱动系统适合交通信号灯,解释实时操作系统可以优先处理来自传感器的中断以满足严格的时间要求。练习为规范中列出的所有关键术语撰写简洁定义,你将能够充分准备考试。
Published by TutorHao | Computer Science Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)

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