Computer System Components and Usage Modes | 计算机系统组成与使用模式

📚 Computer System Components and Usage Modes | 计算机系统组成与使用模式

A computer system is an integrated combination of hardware and software designed to process data and produce meaningful output. For CIE A-Level Computer Science, understanding the fundamental architecture, the roles of each hardware component, system software, and the various operational usage models is essential. This article provides a comprehensive and exam-focused revision of these core concepts.

计算机系统是由硬件和软件集成组合而成的整体,旨在处理数据并产生有意义的输出结果。对于 CIE A-Level 计算机科学考试而言,理解基本体系结构、各硬件组件的作用、系统软件以及各种操作使用模式至关重要。本文提供了对这些核心概念的全面且紧扣考点的复习指导。


1. The Von Neumann Architecture | 冯·诺依曼体系结构

The Von Neumann architecture forms the theoretical foundation of almost all modern computers. It introduces the stored program concept, where the instructions that make up a program and the data they operate on are both stored in the same memory unit. This makes the computer general-purpose, as it can be loaded with different programs to perform different tasks without changing hardware.

冯·诺依曼体系结构构成了几乎所有现代计算机的理论基础。它引入了存储程序概念,即构成程序的指令和它们所操作的数据都存储在同一个存储器单元中。这使得计算机成为通用机——只需加载不同的程序而无需改变硬件,就可以执行不同的任务。

CPU ⇄ Bus ⇄ Memory ⇄ I/O Devices

Under this architecture, the single main memory holds both instructions and data. The Central Processing Unit (CPU) fetches an instruction from memory, decodes it, and executes it—a cycle known as the fetch–decode–execute cycle. One limitation is the Von Neumann bottleneck: because instructions and data share the same bus, only one can be transferred at any time, limiting throughput.

在该体系结构下,主存储器同时存放指令和数据。中央处理器(CPU)从内存中取出指令、译码并执行——这一过程称为取指—译码—执行周期。该结构的一个局限是冯·诺依曼瓶颈:由于指令和数据共享同一条总线,任何时刻只能传输其中一种,限制了吞吐量。


2. The CPU and Its Internal Components | 中央处理器及其内部组件

The CPU is responsible for executing program instructions and coordinating all system activities. It is often referred to as the “brain” of the computer.

中央处理器负责执行程序指令并协调所有系统活动,通常被称为计算机的”大脑”。

  • Arithmetic and Logic Unit (ALU) | 算术逻辑单元

    The ALU performs all arithmetic calculations (addition, subtraction, multiplication, division) and logical operations (AND, OR, NOT, comparison). It also sets status flags, such as the carry flag or zero flag, which are used for decision-making in branching instructions.

    算术逻辑单元执行所有算术计算(加、减、乘、除)和逻辑运算(与、或、非、比较)。它还会设置状态标志位,如进位标志或零标志,用于分支指令中的决策判断。

  • Control Unit (CU) | 控制单元

    The CU fetches instructions from memory, decodes them, and issues control signals that direct the operation of the ALU, memory, and I/O devices. It contains the instruction decoder and a clock that synchronises all operations.

    控制单元从内存中取出指令、进行译码,并发出控制信号来指导 ALU、存储器和输入/输出设备的操作。它包含指令译码器和同步所有操作的时钟

  • Registers | 寄存器

    Registers are small, fast memory locations inside the CPU. Key registers in the CIE syllabus include the Program Counter (PC), which holds the address of the next instruction; the Memory Address Register (MAR); the Memory Data Register (MDR); the Accumulator (ACC); and the Current Instruction Register (CIR).

    寄存器是 CPU 内部小容量、高速度的存储单元。CIE 考纲中的关键寄存器包括:程序计数器(PC),保存下一条指令的地址;存储器地址寄存器(MAR)存储器数据寄存器(MDR)累加器(ACC);以及当前指令寄存器(CIR)

PC → MAR → MDR → CIR → CU Decode → Execute


3. Primary Memory: RAM, ROM and Cache | 主存储器:RAM、ROM 与高速缓存

Primary memory is directly accessible by the CPU. It is fast but volatile or limited in capacity compared to secondary storage.

主存储器可以直接被 CPU 访问。它速度快,但与辅助存储器相比,要么是易失性的,要么容量有限。

Type | 类型 Volatility | 易失性 Use | 用途
RAM (Random Access Memory) Volatile (loses data when power off) Holds running programs and current data
ROM (Read-Only Memory) Non-volatile (retains data) Stores bootloader / firmware
Cache Volatile Holds frequently used data to speed up access

RAM is used for the programs and files that are currently in use. When the computer is switched off, the contents of RAM are lost. ROM, on the other hand, contains the BIOS/UEFI or bootstrap loader, which is executed first when the computer is powered on to load the operating system into RAM.

RAM 用于存放当前正在使用的程序和数据文件。当计算机关闭时,RAM 中的内容会丢失。相比之下,ROM 存放BIOS/UEFI 或引导加载程序,在计算机开机时首先被执行,以将操作系统加载到 RAM 中。

Cache memory sits between the CPU and RAM, typically at two or three levels (L1, L2, L3). It exploits principle of locality—both temporal locality (recently accessed data is likely to be accessed again) and spatial locality (data near recently accessed data is likely to be needed). A larger cache reduces the average access time and improves CPU performance.

高速缓存位于 CPU 与 RAM 之间,通常有两级或三级(L1、L2、L3)。它利用了局部性原理——时间局部性(最近访问过的数据很可能再次被访问)和空间局部性(最近访问数据的邻近数据很可能被需要)。更大的缓存可以减少平均访问时间并提高 CPU 性能。


4. Secondary Storage Devices | 辅助存储设备

Secondary storage provides non-volatile storage for files, programs and data when they are not in use. It has much larger capacity than primary memory but is slower to access.

辅助存储为当前不在使用的文件、程序和数据提供非易失性存储。它的容量比主存储器大得多,但访问速度较慢。

  • Hard Disk Drive (HDD) | 机械硬盘

    HDDs use magnetised platters rotating at high speed to store data. They offer large capacity at low cost per gigabyte, but have moving parts which make them slower and less reliable than SSDs.

    机械硬盘利用高速旋转的磁性盘片存储数据。它们以较低的单位容量成本提供大容量,但由于存在机械运动部件,速度比 SSD 慢且可靠性较低。

  • Solid State Drive (SSD) | 固态硬盘

    SSDs use flash memory (EEPROM technology) with no moving parts. They are much faster, quieter, lighter and more shock-resistant than HDDs, but cost more per gigabyte.

    固态硬盘使用闪存(EEPROM 技术),没有机械运动部件。它们比 HDD 更快、更安静、更轻且更抗震,但每 GB 的成本更高。

  • Optical Discs (CD/DVD/Blu-ray) | 光盘

    Optical media store data as pits and lands on a reflective surface, read by a laser. They are portable and cheap but have limited capacity and slow access speeds.

    光盘以反射表面上的凹坑与平坦区域存储数据,由激光读取。它们便携且廉价,但容量有限、访问速度慢。

When choosing storage, exam answers should compare criteria such as capacity, speed, cost, durability and portability, and justify the most appropriate choice for a given scenario.

在选择存储设备时,考试答案应从容量、速度、成本、耐用性和便携性方面进行比较,并针对给定场景论证最合适的选择。


5. Input and Output Devices | 输入与输出设备

Input devices transfer data from the outside world into the computer, while output devices convey processed information to the user.

输入设备将外界数据传送进计算机,而输出设备则将处理后的信息呈现给用户。

  • Common input devices | 常见输入设备

    Keyboard (text entry), mouse (pointing and selecting), microphone (audio capture), scanner (digitising printed documents), sensors (temperature, pressure, light, motion) and touchscreens (direct manipulation).

    键盘(文本输入)、鼠标(指向与选择)、麦克风(音频采集)、扫描仪(将纸质文档数字化)、传感器(温度、压力、光、运动)以及触摸屏(直接操作)。

  • Common output devices | 常见输出设备

    Monitors (visual display), speakers (audio output), printers (hard-copy output, e.g., inkjet and laser) and actuators (physical movement in control systems, e.g., motors and valves).

    显示器(视觉显示)、扬声器(音频输出)、打印机(硬拷贝输出,如喷墨和激光)以及执行器(控制系统中的物理运动,如电机和阀门)。

  • Input and output devices | 输入输出设备

    Some devices serve both functions. Touchscreens accept tap gestures as input and display output simultaneously. Interactive whiteboards likewise combine both roles.

    有些设备同时具有输入和输出功能。触摸屏将触摸手势作为输入,同时显示输出。交互式电子白板也同时承担这两种角色。


6. System Software and Application Software | 系统软件与应用软件

Software is classified into two broad categories. In exam questions, you must be able to describe each category and give examples.

软件可分为两大类。在考试题目中,你必须能够描述每一类并给出例子。

System software | 系统软件 is responsible for managing and controlling the computer hardware, and it provides a platform on which application programs run. It includes the operating system (OS), device drivers, utility programs and language translators (compilers, interpreters, assemblers). System software often runs in the background; the user does not directly interact with it.

系统软件负责管理和控制计算机硬件,并为应用程序的运行提供平台。它包括操作系统(OS)、设备驱动程序、实用程序和语言翻译器(编译器、解释器、汇编器)。系统软件通常在后台运行,用户并不直接与之交互。

Application software | 应用软件 is designed to perform specific tasks for the user, such as word processing, spreadsheet calculations, database management, web browsing or photo editing. Examples include Microsoft Word, Excel, Adobe Photoshop and Google Chrome.

应用软件旨在为用户完成特定任务,如文字处理、电子表格计算、数据库管理、网页浏览或照片编辑。例如 Microsoft Word、Excel、Adobe Photoshop 和 Google Chrome。


7. Functions of the Operating System | 操作系统的功能

The operating system is the most important piece of system software. It provides a user interface (command-line or graphical) and manages the computer’s resources in four key areas.

操作系统是最重要的系统软件。它提供用户界面(命令行或图形界面),并从四个关键方面管理计算机资源。

  • Process Management | 进程管理

    The OS creates, schedules and terminates processes. Scheduling algorithms such as round-robin, priority-based and first-come-first-served determine which process uses the CPU at any given time. This enables multitasking, where multiple processes appear to run simultaneously by rapidly switching the CPU between them.

    操作系统创建、调度和终止进程。调度算法如轮转法、优先权法和先来先服务法决定了在任一时刻哪个进程使用 CPU。这就实现了多任务处理——通过在进程间快速切换 CPU,使多个进程看起来同时运行。

  • Memory Management | 存储管理

    The OS allocates memory space to processes, tracks which memory areas are free or occupied, and protects one process from interfering with another. Virtual memory can be used to extend physical memory by moving data to secondary storage.

    操作系统为进程分配内存空间,跟踪哪些内存区域空闲或被占用,并防止一个进程干扰另一个进程。虚拟内存通过将数据移入辅助存储器来扩展物理内存。

  • File Management | 文件管理

    The OS organises data into files and directories, handles reading and writing operations, manages file permissions and ensures data integrity.

    操作系统将数据组织为文件和目录,处理读写操作,管理文件权限并确保数据完整性。

  • Security and User Management | 安全与用户管理

    The OS enforces login authentication, sets user access rights and provides methods for protecting the system against unauthorised access or malicious programs.

    操作系统实施登录身份验证、设置用户访问权限,并提供保护系统免受未授权访问或恶意程序攻击的方法。


8. Usage Mode 1: Batch Processing | 使用模式一:批处理

Batch processing refers to collecting jobs or data over a period of time and processing them together in one run, without user interaction during execution. It is suitable for tasks that do not require real-time response.

批处理是指在一段时间内收集作业或数据,然后一次性运行处理,执行过程中无需用户交互。它适用于不需要实时响应的任务。

  • Characteristics | 特点

    Jobs are processed sequentially; no user interaction is needed once the batch is submitted; CPU utilisation is high because jobs are processed continuously.

    作业按顺序处理;批次提交后无需用户交互;作业持续处理,CPU 利用率高。

  • Examples | 典型例子

    Payroll and billing systems, bank statement generation, utility bills, and examinations mark processing.

    工资与账单系统、银行对账单生成、水电费账单以及考试成绩处理。

  • Advantages and disadvantages | 优点与缺点

    Advantages: efficient for large volumes of similar jobs, reduces labour cost, and ensures consistent processing. Disadvantages: very high turnaround time; if an error occurs, the user is not informed until the whole batch is complete.

    优点:适合大量相似作业,效率高,降低人工成本,处理过程一致。缺点:周转时间很长;如果出错,用户要等整个批次完成才能得知。


9. Usage Mode 2: Real-Time Processing | 使用模式二:实时处理

Real-time processing requires the system to respond to input immediately or within a strictly defined deadline. The correctness of the result depends not only on the logical accuracy but also on when it is delivered.

实时处理要求系统立即或在严格限定的截止时间内对输入做出响应。结果正确与否不仅取决于逻辑上的准确性,还取决于结果交付的时间。

  • Characteristics | 特点

    Continuous input and immediate output; the system is event-driven; there is a strict timing constraint; the processor must never be deliberately delayed.

    持续输入、即时输出;系统以事件驱动;有严格的时间约束;处理器绝不能被人为延迟。

  • Examples | 典型例子

    Air traffic control systems, automotive anti-lock braking systems (ABS), patient monitoring in intensive care, and online transaction systems.

    空中交通管制系统、汽车防抱死制动系统(ABS)、重症监护中的病人监测以及在线交易系统。

  • Advantages and disadvantages | 优点与缺点

    Advantages: critical events are handled without delay, and up-to-date data is always available. Disadvantages: expensive to implement, requires redundant hardware for reliability, and a single failure can have catastrophic consequences.

    优点:关键事件可以无延迟处理,并且始终可以获得最新数据。缺点:实现成本高,为保证可靠性需要冗余硬件,且单个故障可能导致灾难性后果。


10. Usage Mode 3: Interactive Processing | 使用模式三:交互式处理

Interactive processing involves a dialog between the user and the computer. The user sends a command, the system processes it quickly, and returns a response, allowing the user to make decisions based on the output.

交互式处理涉及用户与计算机之间的对话。用户发出命令,系统快速处理并返回响应,用户可以根据输出来做出决策。

  • Characteristics | 特点

    Short response time is essential — usually much less than one second; the session is controlled by the user’s commands; input from keyboard or mouse and output on screen.

    响应时间短是必需的——通常远小于一秒;会话由用户命令控制;输入来自键盘或鼠标,输出显示在屏幕上。

  • Examples | 典型例子

    Searching the web, online booking systems, word processing, spreadsheets, computer-aided design (CAD) and command-line shells.

    上网搜索、在线订票系统、文字处理、电子表格、计算机辅助设计(CAD)和命令行 Shell。

  • Advantages and disadvantages | 优点与缺点

    Advantages: immediate feedback supports trial-and-error and allows rapid correction of mistakes; user has a high degree of control. Disadvantages: response time is limited by network bandwidth and server load; inefficient for high-volume repetitive jobs.

    优点:即时反馈支持反复尝试,允许快速纠正错误;用户有很高的控制权。缺点:响应时间受网络带宽和服务器负载限制;不适合大批量重复性作业。


11. Usage Mode 4: Multi-User and Time-Sharing | 使用模式四:多用户与分时系统

Multi-user systems allow multiple users to access the same computer or server simultaneously through different terminals. A time-sharing system implements this by allocating a short time slice, or quantum, to each user’s job in turn.

多用户系统允许多个用户通过网络上的不同终端同时访问同一台计算机或服务器。分时系统通过轮流为每个用户的任务分配一个短时间片(时间片轮转)来实现这一点。

Time slice = Total response time / Number of users

Users share the processor and other system resources. Each user experiences the system as if it were dedicated to them, provided the number of users and the time slices are carefully balanced. If there are too many users, the system becomes noticeably slow.

用户共享处理器和其他系统资源。只要用户数量与时间片分配得到精心平衡,每个用户都会感觉到系统似乎是专属于自己的。如果用户过多,系统就会明显变慢。

Examiners often contrast time-sharing with batch processing: time-sharing is interactive and prioritises responsiveness, while batch processing maximises throughput but sacrifices interactivity.

考试中常将分时系统与批处理进行对比:分时系统具有交互性并优先考虑响应速度,而批处理则最大化吞吐量但牺牲交互性。


12. Embedded Systems and Distributed Systems | 嵌入式系统与分布式系统

Beyond the classic usage modes, CIE candidates should recognise two modern system paradigms.

在经典使用模式之外,CIE 考生还应认识两种现代系统范式。

Embedded systems | 嵌入式系统 are single-purpose computers built into larger devices. They typically run a real-time operating system (RTOS) or no OS at all, have limited memory and processing power, and consume very little power. Examples: washing machines, microwaves, digital cameras, pacemakers and car engine control units.

嵌入式系统是内置于较大设备中的专用计算机。它们通常运行实时操作系统(RTOS)或根本无操作系统,内存和处理能力有限,功耗非常低。例子:洗衣机、微波炉、数码相机、心脏起搏器和汽车发动机控制单元。

Distributed systems | 分布式系统 consist of multiple independent computers that communicate and coordinate their actions by passing messages over a network. They appear to the user as a single coherent system. Examples include cloud computing platforms and peer-to-peer file-sharing networks. Distributed systems improve reliability and scalability but introduce complexity in synchronisation and consistency.

分布式系统由多个独立计算机组成,它们通过网络传递消息来通信和协调动作。对用户而言,它们表现为一个单一一致的系统。例子包括云计算平台和对等(P2P)文件共享网络。分布式系统提高了可靠性和可扩展性,但也带来了同步和一致性方面的复杂性。


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