📚 Operating Systems: GCSE OCR Computer Science Revision | 操作系统:GCSE OCR 计算机考点精讲
An operating system (OS) is the most essential software on any computing device. It manages hardware resources, provides a user interface, and enables applications to run. For GCSE OCR Computer Science, understanding the role and functions of an operating system is critical. This revision guide covers every key point you need to master: from memory management and multitasking to file systems and security features.
操作系统是任何计算设备上最重要的软件。它管理硬件资源、提供用户界面,并使应用程序得以运行。对于 GCSE OCR 计算机科学而言,理解操作系统的角色和功能至关重要。本复习指南涵盖你需要掌握的所有关键点:从内存管理和多任务处理,到文件系统与安全特性。
1. What Is an Operating System? | 什么是操作系统?
An operating system is a collection of software that manages computer hardware and provides common services for application programs. Without an OS, the hardware would be inaccessible to the user, and each application would have to include its own code to control every piece of hardware. The OS sits between the hardware and the applications, acting as a layer of abstraction.
操作系统是一组管理计算机硬件并为应用程序提供通用服务的软件。没有操作系统,硬件将无法被用户使用,每个应用程序都必须包含自己的代码来控制每一件硬件。操作系统位于硬件和应用程序之间,充当抽象层。
Modern operating systems handle tasks such as loading programs into memory, scheduling processes, managing files and providing security. Popular examples include Microsoft Windows, macOS, Linux, Android and iOS. In exam contexts, you need to identify the OS as the software that creates a platform on which other programs can run.
现代操作系统处理诸如将程序载入内存、调度进程、管理文件以及提供安全等任务。常见的例子包括微软 Windows、macOS、Linux、Android 和 iOS。在考试中,你需要指出操作系统是创建其他程序可运行平台的软件。
2. Core Functions of an Operating System | 操作系统的核心功能
The exam expects you to list and explain the essential functions of an OS. These include managing hardware resources such as the processor, memory, input/output devices and storage. The OS must also provide a user interface, enable multitasking, and ensure that different applications do not interfere with each other.
考试要求你列出并解释操作系统的核心功能。这些功能包括管理处理器、内存、输入输出设备和存储器等硬件资源。操作系统还必须提供用户界面、实现多任务处理,并确保不同的应用程序互不干扰。
A typical answer would highlight that the OS acts as a controller: it allocates CPU time, manages memory space, handles file operations, and communicates with peripherals through drivers. Security and error handling are also considered core responsibilities.
典型的答案会强调操作系统充当控制器:它分配 CPU 时间、管理内存空间、处理文件操作,并通过驱动程序与外部设备通信。安全性和错误处理也被视为核心职责。
3. Resource Management | 资源管理
One of the most important roles of an OS is resource management. The processor, memory, disk space and I/O devices are all limited resources. The OS must decide which process gets access to which resource at any given moment. This is done through scheduling algorithms for the CPU and allocation tables for memory and storage.
操作系统最重要的角色之一是资源管理。处理器、内存、磁盘空间和输入输出设备都是有限的资源。操作系统必须决定在任何给定时刻哪个进程获得对哪个资源的访问。这通过 CPU 调度算法以及内存和存储的分配表来实现。
For the CPU, the OS uses a scheduler to switch between processes rapidly, giving the illusion of parallel execution. Memory management ensures that each program has enough space and that the boundaries between programs are respected to avoid data corruption. Similarly, the OS manages input and output requests to ensure efficient data transfer.
对于 CPU,操作系统使用调度程序在进程之间快速切换,给人以并行执行的错觉。内存管理确保每个程序有足够的空间,并且程序之间的边界得到遵守,以避免数据损坏。同样,操作系统管理输入输出请求,以确保高效的数据传输。
4. Memory Management | 内存管理
Memory management is the process of controlling and coordinating computer memory, assigning portions called blocks to various running programs to optimise system performance. The OS keeps track of each memory location, whether it is free or allocated, and handles deallocation when processes terminate.
内存管理是控制和协调计算机内存的过程,将内存块分配给各个运行中的程序以优化系统性能。操作系统跟踪每个内存位置是空闲还是已分配,并在进程终止时处理内存的释放。
An important concept at GCSE is virtual memory. When RAM is full, the OS can move less frequently used data to a section of the hard disk called virtual memory. This allows more programs to run simultaneously, but accessing virtual memory is much slower than accessing physical RAM, which can reduce performance. If a system uses too much virtual memory, it may experience disk thrashing.
GCSE 中的一个重要概念是虚拟内存。当内存已满时,操作系统可以将不常用的数据移到硬盘的一部分,称为虚拟内存。这允许同时运行更多的程序,但访问虚拟内存比访问物理 RAM 慢得多,这可能会降低性能。如果系统使用过多的虚拟内存,可能会出现磁盘抖动现象。
5. Multitasking and Process Scheduling | 多任务与进程调度
A modern OS supports multitasking, meaning it can run several programs seemingly at the same time. Since a single-core processor can only execute one instruction at a time, the OS manages this by switching rapidly between processes. This is known as time-slicing.
现代操作系统支持多任务处理,即可以看似同时运行多个程序。由于单核处理器一次只能执行一条指令,操作系统通过快速切换进程来管理这一点。这被称为时间片轮转。
The scheduler decides which process runs next based on priorities and other factors. The aim is to keep the CPU busy while giving fair access to all active programs. In the OCR exam, you may need to describe how the OS maintains a list of ready processes, allocates a short burst of CPU time to each, and then suspends them to let another run. This creates the illusion of seamless multitasking.
调度程序根据优先级和其他因素决定接下来运行哪个进程。目的是保持 CPU 忙碌,同时公平地让所有活动程序都有机会运行。在 OCR 考试中,你可能需要描述操作系统如何维护一个就绪进程列表,为每个进程分配一小段 CPU 时间,然后挂起它们以便运行另一个进程。这创造了无缝多任务处理的假象。
6. Peripheral Management and Device Drivers | 外设管理与设备驱动程序
Peripheral devices such as keyboards, mice, printers and external storage need to communicate with the OS. Instead of each application having to understand the low-level details of every device, the OS uses device drivers. A driver is a piece of software that translates generic OS commands into device-specific instructions.
键盘、鼠标、打印机和外部存储等外部设备需要与操作系统通信。操作系统使用设备驱动程序,而不是每个应用程序都必须了解每个设备的底层细节。驱动程序是一种将通用操作系统命令转换成设备特定指令的软件。
When a user prints a document, the application sends a generic print command to the OS, which then uses the appropriate printer driver to handle the specifics. This abstraction allows developers to write software without worrying about the hardware, and allows new devices to be added simply by installing a new driver.
当用户打印文档时,应用程序向操作系统发送一个通用打印命令,然后操作系统使用相应的打印机驱动程序处理具体操作。这种抽象允许开发人员不必担心硬件而编写软件,并且只需安装新的驱动程序就能添加新设备。
7. File Management | 文件管理
File management is another fundamental responsibility of the operating system. The OS provides a logical structure for storing and organising data on storage devices. It maintains a file allocation table (FAT) or a similar structure to track which blocks belong to which file and where the free space is located.
文件管理是操作系统的另一项基本职责。操作系统为在存储设备上存储和组织数据提供了逻辑结构。它维护文件分配表或类似结构,以跟踪哪些块属于哪个文件以及空闲空间位于何处。
Users interact with files through a hierarchical directory structure of folders and subfolders. The OS handles common operations such as creating, deleting, moving, renaming and searching for files. It also controls access permissions to ensure that only authorised users can read or modify sensitive files. In the exam, you may be asked to explain how the OS finds a file using pathnames and directory entries.
用户通过文件夹和子文件夹的层次目录结构与文件进行交互。操作系统处理常见的操作,如创建、删除、移动、重命名和搜索文件。它还控制访问权限,以确保只有授权用户才能读取或修改敏感文件。在考试中,你可能需要解释操作系统如何使用路径名和目录项查找文件。
8. User Interface | 用户界面
The user interface (UI) allows the user to interact with the computer. The OS can provide different types of UI: graphical user interface (GUI), command-line interface (CLI), or menu-driven interface. The GUI is the most common, using windows, icons, menus and pointers (WIMP) to make the system intuitive for non-experts.
用户界面允许用户与计算机进行交互。操作系统可以提供不同类型的界面:图形用户界面、命令行界面或菜单驱动界面。图形用户界面最为常见,它使用窗口、图标、菜单和指针,使系统对非专业用户来说直观易懂。
A CLI requires the user to type commands, which offers more direct control and is often preferred by advanced users and system administrators. Many servers and embedded systems use a CLI to conserve resources. At GCSE level, you need to know the features of each interface type and their advantages and disadvantages in different contexts.
命令行界面要求用户键入命令,这提供了更直接的控制,通常受到高级用户和系统管理员的青睐。许多服务器和嵌入式系统使用命令行界面以节省资源。在 GCSE 水平上,你需要了解每种界面类型的特点以及它们在不同情境下的优缺点。
9. Security and User Accounts | 安全与用户账户
Modern operating systems are designed with security in mind. They use user accounts with passwords to control access to the system. Each account has specific permissions, and the OS enforces these permissions when a user attempts to access files or change system settings. Administrator accounts have the highest privileges, while standard accounts are restricted.
现代操作系统的设计考虑到了安全性。它们使用带有密码的用户账户来控制对系统的访问。每个账户都有特定的权限,当用户尝试访问文件或更改系统设置时,操作系统会强制执行这些权限。管理员账户拥有最高权限,而标准账户则受到限制。
The OS also provides security features such as firewalls, file encryption and automatic updates to protect against malware. In addition, memory isolation prevents one program from reading or corrupting the memory of another. These features are essential to maintain the integrity and privacy of data in a multi-user environment.
操作系统还提供防火墙、文件加密和自动更新等安全功能,以防恶意软件侵害。此外,内存隔离能防止一个程序读取或损坏另一个程序的内存。这些功能对于在多用户环境中保持数据的完整性和隐私性至关重要。
10. Utility Software and the Role of the OS | 实用软件与操作系统的角色
It is common in the OCR exam to be asked to distinguish between the operating system and utility software. Utility programs perform specific maintenance tasks such as antivirus scanning, disk defragmentation, backup and file compression. They are not part of the core OS but often come bundled with it.
在 OCR 考试中,经常会被要求区分操作系统和实用软件。实用程序执行特定的维护任务,如防病毒扫描、磁盘碎片整理、备份和文件压缩。它们不是核心操作系统的组成部分,但通常与操作系统捆绑在一起。
The operating system provides the platform for these utilities to run. For example, a defragmentation utility reorganises fragmented files on the disk, but it relies on the OS file management system to locate and move the data blocks. Similarly, a backup utility uses the OS file management and device drivers to copy data to external storage.
操作系统为这些实用程序提供运行平台。例如,碎片整理实用程序会重新组织磁盘上碎片化的文件,但它依赖操作系统的文件管理系统来定位和移动数据块。同样,备份实用程序使用操作系统的文件管理和设备驱动程序将数据复制到外部存储。
Published by TutorHao | Computer Science Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)
屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导Cancel reply