GCSE CIE Computer Science: Operating Systems – Key Points | GCSE CIE 计算机科学:操作系统考点精讲

📚 GCSE CIE Computer Science: Operating Systems – Key Points | GCSE CIE 计算机科学:操作系统考点精讲

An operating system (OS) is the most essential software that runs on a computer. It manages the hardware, runs applications, and provides an interface for users. For GCSE CIE Computer Science, you must understand how an OS handles memory, processes, files, interrupts, and more. This revision guide breaks down all the key concepts you need to know, with clear explanations and bilingual notes to help you master the topic.

操作系统(OS)是计算机上运行的最重要的软件。它管理硬件、运行应用程序,并为用户提供交互界面。在 GCSE CIE 计算机科学考试中,你需要理解操作系统如何处理内存、进程、文件、中断等内容。这份精讲笔记梳理了所有核心知识点,配合清晰的中英双语解析,帮助你全面掌握这一主题。


1. Introduction to Operating Systems | 操作系统简介

An operating system is a layer of software that sits between the hardware and the application programs. It controls everything the computer does, from booting up to shutting down. Common examples include Microsoft Windows, macOS, Linux, Android, and iOS. Without an OS, a computer would be unusable because users would have to manage hardware directly.

操作系统是介于硬件和应用程序之间的一层软件。它控制着计算机从开机到关机的所有操作。常见的操作系统有 Microsoft Windows、macOS、Linux、Android 和 iOS。如果没有操作系统,计算机将无法使用,因为用户必须直接管理硬件。


2. Functions of an Operating System | 操作系统的功能

The OS performs several crucial functions. It provides a user interface, manages system resources such as CPU and memory, controls input and output devices, organises files on storage media, and handles errors and security. In an exam, you may be asked to list and explain these core functions.

操作系统执行多项关键功能。它提供用户界面,管理 CPU 和内存等系统资源,控制输入和输出设备,组织存储介质上的文件,并处理错误与安全问题。考试中可能会要求列出并解释这些核心功能。

Key functions can be remembered by the following points:

关键功能可以通过以下几点来记忆:

  • Memory management – allocating and freeing RAM for programs.
  • 内存管理 – 为程序分配和释放内存。
  • Processor scheduling – deciding which process runs next.
  • 处理器调度 – 决定接下来运行哪个进程。
  • File management – creating, deleting, reading, and writing files.
  • 文件管理 – 创建、删除、读取和写入文件。
  • I/O management – communicating with peripherals like keyboard, mouse, printer.
  • 输入输出管理 – 与键盘、鼠标、打印机等外设通信。
  • Interrupt handling – responding to signals from hardware or software.
  • 中断处理 – 响应来自硬件或软件的中断信号。
  • Security and access control – protecting data with user accounts and permissions.
  • 安全与访问控制 – 通过用户账户和权限保护数据。

3. Memory Management | 内存管理

Memory management ensures that each program gets its own piece of RAM and does not interfere with others. The OS keeps track of which parts of memory are in use and which are free. When a program requests memory, the OS allocates a block; when the program finishes, the memory is released.

内存管理确保每个程序获得各自独立的内存空间,互不干扰。操作系统记录哪些内存区域正在使用、哪些空闲。当程序请求内存时,OS 分配一个内存块;程序结束后,内存被释放。

In a system without proper memory management, a faulty program could overwrite another program’s data, causing crashes. Modern OS use protection mechanisms to prevent such errors.

在缺乏合适内存管理的系统中,有缺陷的程序可能覆盖其他程序的数据,导致系统崩溃。现代操作系统采用保护机制来防止此类错误。

The OS may also use virtual memory, which combines RAM and a portion of the hard disk to run larger programs. This will be explained in the next section.

操作系统还可能使用虚拟内存,将 RAM 和硬盘的一部分结合起来运行较大的程序。这将在下一节中解释。


4. Paging and Virtual Memory | 分页与虚拟内存

Paging is a technique where memory is divided into fixed-size blocks called pages. Programs are also split into pages of the same size. This allows non-contiguous allocation, meaning a program’s pages can be scattered in physical RAM. The OS uses a page table to translate logical addresses (the program’s view) into physical addresses (actual RAM locations).

分页是一种内存管理技术,它将内存划分为固定大小的块,称为页。程序也被分割成同样大小的页。这允许非连续分配,即程序的不同页可以分散在物理 RAM 中。操作系统使用页表将逻辑地址(程序视角)转换为物理地址(实际 RAM 位置)。

For example, a logical address consists of a page number and an offset:

Logical Address = (Page Number, Offset)

例如,逻辑地址由页号和偏移量组成:

逻辑地址 = (页号,偏移量)

Virtual memory extends this concept by using disk space as if it were extra RAM. When RAM is full, the OS moves some pages to a swap file on the hard disk. This allows the computer to run programs that are larger than the actual physical RAM, although accessing the disk is much slower.

虚拟内存扩展了这一概念,将硬盘空间当作额外的 RAM 来使用。当 RAM 已满时,操作系统会将一些页面移动到硬盘上的交换文件。这使计算机能够运行比物理 RAM 更大的程序,尽管访问硬盘的速度要慢得多。

Term / 术语 Description / 描述
Page / 页 Fixed-size block of memory (e.g., 4 KB) 固定大小的内存块(如 4 KB)
Page table / 页表 Maps logical pages to physical frames 将逻辑页映射到物理帧
Swap file / 交换文件 Disk space used when RAM is full 当 RAM 满时使用的磁盘空间

5. Process Management | 进程管理

A process is a program in execution. The OS must manage all active processes, ensuring each gets a fair share of CPU time. It creates, schedules, and terminates processes. Every process moves through different states: new, ready, running, waiting, and terminated.

进程是正在执行的程序。操作系统必须管理所有活动的进程,确保每个进程都能公平地获得 CPU 时间。它负责创建、调度和终止进程。每个进程都会经历不同的状态:新建、就绪、运行、等待和终止。

When a user opens an application, the OS creates a process. If there are multiple processes, the OS decides which one gets to use the CPU using a scheduling algorithm. The scheduler is part of the OS kernel.

当用户打开一个应用程序时,操作系统会创建一个进程。如果有多个进程,操作系统会使用调度算法来决定哪个进程使用 CPU。调度程序是操作系统内核的一部分。

A process might be in the ‘waiting’ state if it is waiting for an I/O operation, such as reading from a file. When the I/O completes, an interrupt is generated to move it back to ‘ready’.

如果进程正在等待 I/O 操作(如读取文件),它可能处于“等待”状态。当 I/O 操作完成时,会产生一个中断,将其移回“就绪”状态。


6. Scheduling and Multitasking | 调度与多任务处理

Multitasking allows several processes to appear to run simultaneously. On a single-core CPU, this is achieved by switching rapidly between processes. The OS uses a scheduler to decide the order and duration of process execution. Common scheduling algorithms include Round Robin, First Come First Served, and Priority scheduling.

多任务处理允许多个进程看起来像是同时运行。在单核 CPU 上,这是通过在进程之间快速切换来实现的。操作系统使用调度程序来决定进程执行的顺序和时长。常见的调度算法有轮转调度(Round Robin)、先来先服务和优先级调度。

In Round Robin, each process is given a fixed time slice (e.g., 2 ms). The CPU cycles through all ready processes, giving each a turn. If a process does not finish within its slice, it is sent to the back of the queue. This is fair and responsive.

在轮转调度中,每个进程被分配一个固定的时间片(如 2 毫秒)。CPU 在所有就绪进程之间循环,给每个进程一个运行机会。如果进程在其时间片内未完成,它会被送到队列末尾。这种方法公平且响应迅速。

When answering exam questions, always explain how the algorithm works and mention its advantages, such as preventing a single process from monopolising the CPU.

在回答试题时,要说明算法的工作原理并提及其优点,例如防止单个进程垄断 CPU。


7. Interrupt Handling | 中断处理

An interrupt is a signal sent to the processor to gain its immediate attention. Interrupts can be generated by hardware (e.g., a key press, mouse movement, disk I/O completion) or by software (e.g., a program error). When an interrupt occurs, the CPU suspends its current task, saves its state, and executes an interrupt service routine (ISR).

中断是发送给处理器以引起其立即注意的信号。中断可以由硬件(如按键、鼠标移动、磁盘 I/O 完成)或软件(如程序错误)产生。当中断发生时,CPU 暂停当前任务,保存其状态,并执行中断服务程序(ISR)。

The interrupt handling process follows these steps:

中断处理过程遵循以下步骤:

  • The interrupt signal is detected by the processor.
  • 处理器检测到中断信号。
  • The current state of the process (registers, program counter) is saved.
  • 保存当前进程的状态(寄存器、程序计数器)。
  • The CPU jumps to a fixed memory location containing the appropriate ISR.
  • CPU 跳转到一个固定的内存位置,该位置包含相应的 ISR。
  • Once the ISR finishes, the saved state is restored, and the original task resumes.
  • ISR 完成后,恢复已保存的状态,原始任务继续执行。

Interrupts are critical for making a computer responsive. For example, without interrupts, the CPU would have to constantly check (poll) every device, wasting time.

中断对于计算机的响应能力至关重要。例如,如果没有中断,CPU 就必须不断地检查(轮询)每个设备,浪费时间。


8. File Management | 文件管理

The operating system provides a structured way to store and retrieve data on secondary storage. Files are organised in directories (folders) forming a hierarchical tree structure. The OS handles file naming, creation, opening, reading, writing, closing, and deletion.

操作系统提供了一种结构化的方式来在辅助存储器上存储和检索数据。文件被组织在目录(文件夹)中,形成分层的树状结构。操作系统负责文件的命名、创建、打开、读取、写入、关闭和删除。

Access rights such as read, write, and execute are managed by the OS to protect files from unauthorised access. Many OS also provide file extensions (e.g., .txt, .jpg, .py) so the system knows which application to use to open the file.

操作系统管理读取、写入和执行等访问权限,以保护文件免遭未经授权的访问。许多操作系统还提供文件扩展名(如 .txt、.jpg、.py),以便系统知道使用哪个应用程序来打开文件。

The OS also handles fragmentation. When files are deleted and new ones saved, the free space may become scattered. Some OS perform defragmentation to rearrange data and improve performance.

操作系统还要处理碎片问题。当文件被删除并保存新文件时,可用空间可能变得零散。一些操作系统会执行碎片整理来重新排列数据,以提高性能。


9. User Interfaces | 用户界面

The user interface (UI) is the part of the OS that allows users to interact with the computer. The two main types are command-line interface (CLI) and graphical user interface (GUI). CIE exams often ask you to compare both.

用户界面(UI)是操作系统的一部分,允许用户与计算机交互。两种主要类型是命令行界面(CLI)和图形用户界面(GUI)。CIE 考试常常要求比较二者。

A CLI requires the user to type commands. It is less intuitive but very powerful for experienced users because scripts can automate tasks. Examples: Linux terminal, Windows Command Prompt.

CLI 要求用户输入命令。它不太直观,但对于经验丰富的用户来说非常强大,因为可以通过脚本自动执行任务。示例:Linux 终端、Windows 命令提示符。

A GUI uses windows, icons, menus, and pointers (WIMP). It is easier to learn and more user-friendly, especially for beginners. However, it consumes more system resources. Examples: macOS desktop, Windows Explorer.

GUI 使用窗口、图标、菜单和指针(WIMP)。它更容易学习,对用户更友好,尤其适合初学者。然而,它消耗更多的系统资源。示例:macOS 桌面、Windows 资源管理器。

Other interfaces include gesture-based (touchscreens) and menu-based interfaces. In an exam, always mention target audience and resource usage when comparing UI types.

其他界面还包括基于手势的界面(触摸屏)和基于菜单的界面。在考试中,比较界面类型时,务必提及目标用户和资源消耗。


10. Types of Operating Systems | 操作系统的类型

Not all operating systems are the same. They can be categorised based on their design and usage. The GCSE CIE syllabus expects you to recognise the differences between single-user, multi-user, multitasking, real-time, and distributed systems.

并非所有操作系统都相同。可以根据设计和使用场景对其进行分类。GCSE CIE 考纲要求你能够区分单用户、多用户、多任务、实时和分布式系统。

Type / 类型 Characteristics / 特点 Example / 示例
Single-user, single-task One user, one program at a time Early DOS
Single-user, multitasking One user runs multiple apps simultaneously Windows, macOS
Multi-user Multiple users access the system simultaneously via terminals UNIX, Linux server
Real-time Must respond to events within strict time limits Flight control systems
Distributed Uses multiple computers connected via a network to achieve a common goal Cloud computing systems

Single-user 同时只有一个用户使用。多用户系统允许多个用户同时登录,每个用户感觉独占系统。实时系统用于安全关键应用,延迟必须极小且可预测。


11. Security and Access Control | 安全与访问控制

Security is a fundamental OS function. The OS ensures that users can only access resources they are permitted to use. This is typically achieved through user accounts, passwords, and permission levels. For example, an administrator may have full control while a guest has restricted access.

安全是操作系统的一项基本功能。操作系统确保用户只能访问其被允许使用的资源。这通常通过用户账户、密码和权限级别来实现。例如,管理员可以拥有完全控制权,而访客则受到限制。

File permissions often consist of read (R), write (W), and execute (X) settings for the owner, group, and others. The OS also logs user activities for auditing, and uses firewalls and encryption to protect data from external threats.

文件权限通常包括针对所有者、群组和其他人的读取 (R)、写入 (W) 和执行 (X) 设置。操作系统还会记录用户活动以供审计,并使用防火墙和加密技术来保护数据免受外部威胁。

Authentication methods can include biometrics (fingerprints, face recognition) alongside passwords. In an exam, you might be asked to explain why access control is important in a multi-user environment.

身份验证方法可以包括生物识别技术(指纹、面部识别)以及密码。在考试中,你可能会被要求解释为什么访问控制在多用户环境中很重要。


12. Conclusion – Key Points for the Exam | 总结 – 考试要点

To do well in the GCSE CIE Computer Science exam, you must be able to describe the role and functions of an operating system. Focus on memory management (paging, virtual memory), process scheduling (Round Robin), interrupt handling, file organisation, and the comparison of CLI vs GUI. Use accurate terminology and give concrete examples whenever possible.

为了在 GCSE CIE 计算机科学考试中取得好成绩,你必须能够描述操作系统的角色和功能。重点关注内存管理(分页、虚拟内存)、进程调度(轮转算法)、中断处理、文件组织,以及 CLI 与 GUI 的比较。使用准确的术语,并尽可能给出具体示例。

Revising with these bilingual notes will help you retain concepts in both languages and strengthen your understanding. Good luck!

通过这些双语笔记复习,可以帮助你用两种语言记住概念,并加深理解。祝你好运!

Published by TutorHao | Computer Science Revision Series | aleveler.com

更多咨询请联系16621398022(同微信)

Comments

屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from aleveler.com

Subscribe now to keep reading and get access to the full archive.

Continue reading