IGCSE OCR Computer Science: Memory Exam Topics | IGCSE OCR 计算机:存储器 考点精讲

📚 IGCSE OCR Computer Science: Memory Exam Topics | IGCSE OCR 计算机:存储器 考点精讲

Memory is one of the core topics in the OCR IGCSE Computer Science specification. It covers the fundamental hardware components that store data and instructions, including primary memory (RAM and ROM), secondary storage (magnetic, optical, and solid-state), and related concepts such as virtual memory and units of data storage. Understanding the differences, purposes, and characteristics of each type of memory is essential for both the written examination and practical application of computer science.

存储器是 OCR IGCSE 计算机科学课程的核心主题之一。它涵盖了存储数据和指令的基本硬件组件,包括主存储器(RAM 和 ROM)、辅助存储(磁存储、光存储和固态存储)以及虚拟内存和数据存储单位等相关概念。理解各类存储器的区别、用途和特性,对于笔试和计算机科学的实际应用都至关重要。

1. Introduction to Memory | 存储器简介

In a computer system, memory is responsible for holding both the data that is being processed and the instructions that control the processing. Memory can be classified into two main categories: primary memory (directly accessed by the CPU) and secondary storage (used for long‑term retention of data).

在计算机系统中,存储器负责存放正在处理的数据和控制处理的指令。存储器可分为两大类:主存储器(由 CPU 直接访问)和辅助存储(用于长期保存数据)。

Primary memory includes Random Access Memory (RAM) and Read Only Memory (ROM), both of which are volatile or non‑volatile in very specific ways. Secondary storage, such as hard drives, SSDs, and optical discs, provides non‑volatile storage for programs and files when the computer is powered off.

主存储器包括随机存取存储器(RAM)和只读存储器(ROM),它们在易失性/非易失性方面有着特定的区别。辅助存储,如硬盘、固态硬盘和光盘,用于在计算机断电后依然保留程序与文件。


2. Primary Memory: RAM | 主存储器:随机存取存储器

RAM is volatile memory, meaning its contents are lost when the power is turned off. It stores the data, programs, and parts of the operating system that are currently in use. When a computer boots up, the operating system is loaded from secondary storage into RAM to allow the CPU to work at high speed.

RAM 是易失性存储器,意味着断电后内容便会丢失。它存放当前正在使用的数据、程序以及部分操作系统。计算机启动时,操作系统会从辅助存储加载到 RAM 中,以便 CPU 高速运行。

The main characteristic of RAM is that it can be read from and written to by the processor. Having more RAM typically allows a computer to multitask more effectively, as more applications and data can be held in fast‑access memory simultaneously. However, because RAM is volatile, it is not suitable for long‑term storage.

RAM 的主要特点是处理器可以对其进行读和写操作。拥有更多 RAM 通常能让计算机更有效地执行多任务,因为更多应用和数据可以同时存放在快速访问的内存中。但由于 RAM 具有易失性,因此不适合长期存储。

Two common types of RAM are DRAM (Dynamic RAM) and SRAM (Static RAM). DRAM needs to be refreshed thousands of times per second, while SRAM is faster and more expensive, often used for cache memory.

常见的 RAM 类型有 DRAM(动态 RAM)和 SRAM(静态 RAM)。DRAM 需要每秒刷新数千次,而 SRAM 速度更快、价格更高,通常用作高速缓存。


3. Primary Memory: ROM | 主存储器:只读存储器

ROM is non‑volatile memory, meaning it retains its contents even when the power is switched off. It is used to store the firmware or BIOS (Basic Input/Output System) that is essential for booting up the computer. The contents of ROM are pre‑programmed during manufacture and cannot normally be altered by the user.

ROM 是非易失性存储器,即使断电也能保留内容。它用于存放固件或 BIOS(基本输入/输出系统),这些对于计算机启动至关重要。ROM 的内容在制造时预编程,用户通常无法修改。

Unlike RAM, ROM is primarily read‑only. This means data stored in ROM is safe from accidental deletion. Modern variants such as PROM, EPROM, and EEPROM allow a limited number of reprogramming cycles for updating firmware.

与 RAM 不同,ROM 主要是只读的。这意味着 ROM 中的数据不会因意外而被删除。如 PROM、EPROM 和 EEPROM 等现代变体,允许有限的重新编程次数,以便更新固件。

In embedded systems, ROM is particularly important because it holds the dedicated control program for devices such as washing machines, microwaves, and digital watches.

在嵌入式系统中,ROM 尤为重要,因为它保存着洗衣机、微波炉、数字手表等设备的专用控制程序。


4. Difference Between RAM and ROM | RAM 与 ROM 的区别

Understanding the contrast between RAM and ROM is a frequent exam question. The table below summarises the key differences that you must memorise.

理解 RAM 与 ROM 的对比是常见考点。下表总结了必须牢记的主要区别。

Feature RAM ROM
Volatility Volatile (data lost on power off) Non‑volatile (data retained)
Typical usage Stores running programs, OS, open files Stores boot‑up instructions (BIOS/firmware)
Read/Write Read and write allowed Primarily read‑only
Capacity Larger (e.g., 4 GB – 32 GB) Much smaller (e.g., 4 MB – 32 MB)
Speed Faster, accessed by CPU directly Slower than RAM, but still fast

These differences explain why both types of memory are needed: ROM provides the initial start‑up code, while RAM offers a high‑speed working space for the CPU.

这些区别说明了为什么需要两种存储器:ROM 提供初始启动代码,而 RAM 为 CPU 提供高速工作空间。


5. Need for Secondary Storage | 二级存储的需求

Primary memory is fast but has limited capacity and is mainly volatile. Secondary storage devices are needed to provide permanent, non‑volatile, and large‑capacity storage for operating systems, software, and user files. Without secondary storage, all data would be lost every time the computer is switched off.

主存储器速度快但容量有限且多为易失性。辅助存储设备用于为操作系统、软件和用户文件提供永久性、非易失性的大容量存储。没有辅助存储,所有数据将在每次关机时丢失。

Secondary storage is also important for backup, archiving, and transferring data between systems. Common characteristics used to compare secondary storage devices are: capacity, speed (access time and data transfer rate), portability, durability, and cost per unit of storage.

辅助存储对于备份、归档和在不同系统间传输数据也很重要。比较辅助存储设备的常用特性包括:容量、速度(存取时间和数据传输率)、便携性、耐用性和单位存储成本。


6. Types of Secondary Storage | 二级存储的类型

Secondary storage can be divided into three main types based on the technology used: magnetic, optical, and solid state. Each type has its own advantages and disadvantages, making them suitable for different applications.

辅助存储根据所用技术可分为三大类:磁存储、光存储和固态存储。每种类型都有各自的优缺点,适用于不同的应用场景。

Magnetic storage devices use magnetised platters and read/write heads. Optical storage uses lasers to read and write data on discs. Solid state storage relies on flash memory chips with no moving parts.

磁存储设备使用带有磁性的盘片和读/写磁头。光存储利用激光在光盘上读写数据。固态存储依赖没有移动部件的闪存芯片。


7. Magnetic Storage | 磁存储

Traditional hard disk drives (HDDs) are the most common example of magnetic storage. They consist of spinning platters coated with magnetic material and read/write heads that move across the platters to access data. Magnetic tape is another form used mainly for large backups and archiving.

传统硬盘驱动器(HDD)是磁存储最常见的例子。它们由涂有磁性材料的旋转盘片和读/写磁头组成,磁头在盘片上移动以访问数据。磁带是另一种形式,主要用于大规模备份和归档。

Advantages of magnetic storage include very high capacity at relatively low cost per gigabyte. HDDs can hold several terabytes of data. However, because they contain moving parts, they are susceptible to physical damage, slower in access time compared to solid state drives, and slightly noisier.

磁存储的优点包括极高的容量以及相对较低的每 GB 成本。HDD 可以存储数 TB 的数据。然而,由于包含运动部件,它们容易受到物理损伤,存取速度比固态硬盘慢,且噪音稍大。

Typical uses: desktop computers, servers, network‑attached storage, and large archival systems.

典型用途:台式电脑、服务器、网络附加存储和大型归档系统。


8. Optical Storage | 光存储

Optical storage devices use lasers to read and write data on CDs, DVDs, and Blu‑ray discs. Data is stored in pits and lands on the reflective surface of the disc. Different types (ROM, R, RW) allow read‑only, recordable, and rewritable operations.

光存储设备使用激光在 CD、DVD 和蓝光光盘上读写数据。数据以凹坑和平面形式存储在光盘的反光面上。不同类型(ROM、R、RW)支持只读、可录制和可重写操作。

Optical media are very portable, cheap to manufacture, and immune to magnetic fields. However, they have relatively slow data transfer rates, limited capacity compared to modern HDDs and SSDs, and are prone to scratches and surface damage.

光存储介质非常便携,制造成本低廉,且不受磁场影响。但是,它们的数据传输速率较慢,与现代 HDD 和 SSD 相比容量有限,并且容易划伤和表面损坏。

Typical uses: distributing software, movies, music, and creating small backups or bootable rescue discs.

典型用途:分发软件、电影、音乐,以及制作小型备份或可启动救援盘。


9. Solid State Storage | 固态存储

Solid state drives (SSDs) and USB flash drives use NAND flash memory to store data. They have no moving parts, which makes them faster, lighter, more durable, and significantly quieter than HDDs. SSDs are increasingly used as the primary storage in modern laptops and desktops.

固态硬盘(SSD)和 USB 闪存盘使用 NAND 闪存来存储数据。它们没有运动部件,因此比 HDD 更快、更轻、更耐用,且安静得多。SSD 正越来越多地被用作现代笔记本电脑和台式机的主存储。

The main advantages of solid state storage are high speed (fast boot times, quick file transfers), shock resistance, and low power consumption. The main disadvantage is higher cost per gigabyte compared to magnetic storage, though prices continue to fall.

固态存储的主要优点是高速(启动快、文件传输快)、抗震和低功耗。主要缺点是每 GB 成本比磁存储高,尽管价格在持续下降。

Other examples include SD cards and memory cards used in cameras and smartphones, which also rely on solid state technology.

其他例子包括用于相机和智能手机的 SD 卡和存储卡,它们同样依赖固态技术。


10. Choosing Suitable Storage Devices | 选择合适的存储设备

In exam scenarios, you must be able to justify the choice of a storage device for a given context. Factors to consider include: whether the data needs to be portable, the required capacity, access speed, durability, cost, and whether the data needs to be rewritten frequently.

在考试情境中,必须能够为特定场景合理选择存储设备。考虑因素包括:数据是否需要便携、所需容量、存取速度、耐用性、成本,以及数据是否需要频繁重写。

For example, an SSD is ideal for a laptop that requires fast booting and durability, whereas a large HDD would be better for a network backup server where low cost per terabyte is critical. A USB flash drive is perfect for carrying documents between school and home due to its small size and decent read/write speeds.

例如,SSD 非常适合需要快速启动和耐用性的笔记本电脑,而用于网络备份服务器时,大容量 HDD 更合适,因为每 TB 成本很低。USB 闪存盘因体积小且读写速度适中,非常适合在学校和家里之间携带文档。

Scenario Suitable Device Reason
Storing the operating system and games on a gaming PC SSD High speed reduces loading times
Backing up an entire server weekly Magnetic tape or large HDD Low cost per GB, large capacity
Sending video files to a friend USB flash drive or external SSD Portable, fast enough for large files
Archiving family photos for 20 years Archival‑grade optical disc (e.g., M‑Disc) Long lifespan, resistant to environmental changes

11. Units of Data Storage | 数据存储单位

Data is stored in binary format (0s and 1s). The smallest unit of data is a bit (binary digit). A group of 8 bits forms a byte. Larger units are multiples of bytes, and in computer science the binary multiples (powers of 2) are often used for memory capacity, though decimal prefixes are sometimes used by storage manufacturers.

数据以二进制格式(0 和 1)存储。最小的数据单位是位(比特,bit)。8 个位组成一个字节(byte)。更大的单位是字节的倍数,在计算机科学中,内存容量通常采用二进制倍数(2 的幂),尽管存储制造商有时会使用十进制前缀。

Important units and their values:

  • 1 nibble = 4 bits
  • 1 byte = 8 bits
  • 1 kilobyte (KB) = 2¹⁰ bytes = 1024 bytes
  • 1 megabyte (MB) = 2²⁰ bytes = 1,048,576 bytes
  • 1 gigabyte (GB) = 2³⁰ bytes = 1,073,741,824 bytes
  • 1 terabyte (TB) = 2⁴⁰ bytes = 1,099,511,627,776 bytes
  • 1 petabyte (PB) = 2⁵⁰ bytes

重要单位及其值:

  • 1 个半字节 (nibble) = 4 位
  • 1 字节 (byte) = 8 位
  • 1 千字节 (KB) = 2¹⁰ 字节 = 1024 字节
  • 1 兆字节 (MB) = 2²⁰ 字节 = 1,048,576 字节
  • 1 千兆字节 (GB) = 2³⁰ 字节 = 1,073,741,824 字节
  • 1 太字节 (TB) = 2⁴⁰ 字节 = 1,099,511,627,776 字节
  • 1 拍字节 (PB) = 2⁵⁰ 字节

You must be able to convert between these units, for example, calculate how many gigabytes are in a terabyte or how many songs (each 5 MB) can fit on a 16 GB USB drive.

必须能够在这些单位之间进行转换,例如,计算 1 TB 中包含多少 GB,或者一个 16 GB 的 U 盘可以存放多少首每首 5 MB 的歌曲。


12. Virtual Memory | 虚拟内存

Virtual memory is a memory management technique that lets a computer use secondary storage (usually an HDD or SSD) as if it were additional RAM. When the physical RAM is full, the operating system moves infrequently used data from RAM to a designated area on the hard drive called the swap file or page file.

虚拟内存是一种内存管理技术,它让计算机可以使用辅助存储(通常是 HDD 或 SSD)就好像它们是额外的 RAM 一样。当物理 RAM 满载时,操作系统会将不常用的数据从 RAM 移到硬盘上一个称为交换文件或页面文件的指定区域。

This allows the computer to run more programs simultaneously, but accessing data from virtual memory is much slower than accessing RAM because secondary storage devices have slower read/write speeds. Excessive use of virtual memory can cause disk thrashing, where the system becomes unresponsive due to constant swapping.

这使得计算机可以同时运行更多程序,但从虚拟内存访问数据比从 RAM 访问慢得多,因为辅助存储设备的读写速度较低。过度使用虚拟内存可能导致磁盘抖动(disk thrashing),系统因不断交换数据而变得无响应。

Adding more physical RAM is the most effective way to reduce reliance on virtual memory and improve overall system performance.

增加更多的物理 RAM 是减少对虚拟内存依赖并提升整体系统性能的最有效方式。


Published by TutorHao | IGCSE OCR 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