- Key People:
- Jay Wright Forrester
computer memory
-
What is computer memory?
Computer memory is a device that stores data or programs temporarily or permanently for use in an electronic digital computer. Computers use binary code, sequences of 0s and 1s, to represent information. Any physical system with two stable states can store each binary digit, or "bit." This bistable system could be an on-off switch, a capacitor, or a magnet.
Computer memory is divided into main (primary) and auxiliary (secondary) memory. Main memory stores instructions and data while a program is running, while auxiliary memory stores data and programs not in use, providing long-term storage. Memory organization in a computer constitutes a hierarchy of levels, from fast and expensive registers in the CPU to slower and cheaper nonvolatile backup storage.
3 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
Why do computers need memory?
Computers need memory to store data and programs for operation. Computer memory is divided into main (primary) and auxiliary (secondary) memory. Main memory temporarily holds instructions and data while a program runs. Auxiliary memory provides long-term storage for data and programs not in use.
Main memory, or random-access memory (RAM), along with the central processing unit (CPU) and peripherals, constitute the physical elements (hardware) of a computer. RAM stores data that the CPU can access quickly. The memory hierarchy in a computer ranges from small, fast registers in the CPU to larger, slower storage like hard disks.
2 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
What is the difference between RAM and storage?
RAM (random access memory) and storage serve different functions in a computer. RAM is a main computer memory that provides quick access to data for the central processing unit (CPU). It allows data to be read or written in a very short time, regardless of the order in which it was recorded. There are two types of RAM: static RAM (SRAM) and dynamic RAM (DRAM).
Storage, also known as secondary memory, is for data and programs not currently in use. Early storage used magnetic tape, which was cheap but had to be read sequentially. Modern storage includes solid-state drives (SSDs), hard drives, and optical discs. Unlike RAM, storage retains data when the power is off.
5 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
How does RAM help a computer run programs faster?
RAM, or random-access memory, is a type of computer memory that allows the central processing unit (CPU) to access data quickly, regardless of the data's location.
RAM stores data and instructions that the CPU needs to access frequently. When a program is running, the computer pulls the necessary data from the hard disk and loads it into RAM. Because RAM can be accessed more quickly than a hard drive, this allows the computer to run programs faster.
There are two main types of RAM: static RAM (SRAM) and dynamic RAM (DRAM).
4 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
What is the role of cache memory in a computer?
Cache memory is a supplementary memory system that temporarily stores frequently used instructions and data for quicker processing by the central processing unit (CPU) of a computer. It is an extension of a computer’s main memory. Cache memory holds a copy of the most frequently used information or program codes stored in the main memory. The smaller capacity of the cache reduces the time required to locate data within it and provide it to the CPU for processing. A well-designed cache allows up to 85–90 percent of memory references to be done from it in typical programs, giving a severalfold speedup in data access.
3 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles. -
How do different types of memory (RAM, ROM, cache) work together in a computer?
In a computer, different types of memory work together to ensure efficient data processing. Cache memory is a small, fast SRAM used by the CPU to store frequently used instructions and data for quick access, reducing the time needed to locate data. RAM (Random Access Memory), typically DRAM, serves as the main memory where the CPU can directly read or write data, providing larger storage capacity. ROM (Read-Only Memory) is non-volatile memory that stores essential programs like the bootstrap program or BIOS, which are crucial for starting the computer and loading the operating system. These memory types form a hierarchy, balancing speed, size, and cost to optimize computer performance.
3 Britannica SourcesCreated from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.
News •
computer memory, device that is used to store data or programs (sequences of instructions) on a temporary or permanent basis for use in an electronic digital computer. Computers represent information in binary code, written as sequences of 0s and 1s. Each binary digit (or “bit”) may be stored by any physical system that can be in either of two stable states, to represent 0 and 1. Such a system is called bistable. This could be an on-off switch, an electrical capacitor that can store or lose a charge, a magnet with its polarity up or down, or a surface that can have a pit or not. Today capacitors and transistors, functioning as tiny electrical switches, are used for temporary storage, and either disks or tape with a magnetic coating, or plastic discs with patterns of pits are used for long-term storage.
Computer memory is divided into main (or primary) memory and auxiliary (or secondary) memory. Main memory holds instructions and data when a program is executing, while auxiliary memory holds data and programs not currently in use and provides long-term storage.
Main memory
The earliest memory devices were electro-mechanical switches, or relays (see computers: The first computer), and electron tubes (see computers: The first stored-program machines). In the late 1940s the first stored-program computers used ultrasonic waves in tubes of mercury or charges in special electron tubes as main memory. The latter were the first random-access memory (RAM). RAM contains storage cells that can be accessed directly for read and write operations, as opposed to serial access memory, such as magnetic tape, in which each cell in sequence must be accessed till the required cell is located.
Magnetic drum memory
Magnetic drums, which had fixed read/write heads for each of many tracks on the outside surface of a rotating cylinder coated with a ferromagnetic material, were used for both main and auxiliary memory in the 1950s, although their data access was serial.
Magnetic core memory
About 1952 the first relatively cheap RAM was developed: magnetic core memory, an arrangement of tiny ferrite cores on a wire grid through which current could be directed to change individual core alignments. Because of the inherent advantage of RAM, core memory was the principal form of main memory until superseded by semiconductor memory in the late 1960s.
Semiconductor memory
There are two basic kinds of semiconductor memory. Static RAM (SRAM) consists of flip-flops, a bistable circuit composed of four to six transistors. Once a flip-flop stores a bit, it keeps that value until the opposite value is stored in it. SRAM gives fast access to data, but it is physically relatively large. It is used primarily for small amounts of memory called registers in a computer’s central processing unit (CPU) and for fast “cache” memory. Dynamic RAM (DRAM) stores each bit in an electrical capacitor rather than in a flip-flop, using a transistor as a switch to charge or discharge the capacitor. Because it has fewer electrical components, a DRAM storage cell is smaller than SRAM. However, access to its value is slower and, because capacitors gradually leak charges, stored values must be recharged approximately 50 times per second. Nonetheless, DRAM is generally used for main memory because the same size chip can hold several times as much DRAM as SRAM.
Storage cells in RAM have addresses. It is common to organize RAM into “words” of 8 to 64 bits, or 1 to 8 bytes (8 bits = 1 byte). The size of a word is generally the number of bits that can be transferred at a time between main memory and the CPU. Every word, and usually every byte, has an address. A memory chip must have additional decoding circuits that select the set of storage cells that are at a particular address and either store a value at that address or fetch what is stored there. The main memory of a modern computer consists of a number of memory chips, each of which might hold many megabytes (millions of bytes), and still further addressing circuitry selects the appropriate chip for each address. In addition, DRAM requires circuits to detect its stored values and refresh them periodically.
Main memories take longer to access data than CPUs take to operate on them. For instance, DRAM memory access typically takes 20 to 80 nanoseconds (billionths of a second), but CPU arithmetic operations may take only a nanosecond or less. There are several ways in which this disparity is handled. CPUs have a small number of registers, very fast SRAM that hold current instructions and the data on which they operate. Cache memory is a larger amount (up to several megabytes) of fast SRAM on the CPU chip. Data and instructions from main memory are transferred to the cache, and since programs frequently exhibit “locality of reference”—that is, they execute the same instruction sequence for a while in a repetitive loop and operate on sets of related data—memory references can be made to the fast cache once values are copied into it from main memory.
Much of the DRAM access time goes into decoding the address to select the appropriate storage cells. The locality of reference property means that a sequence of memory addresses will frequently be used, and fast DRAM is designed to speed access to subsequent addresses after the first one. Synchronous DRAM (SDRAM) and EDO (extended data output) are two such types of fast memory.
Nonvolatile semiconductor memories, unlike SRAM and DRAM, do not lose their contents when power is turned off. Some nonvolatile memories, such as read-only memory (ROM), are not rewritable once manufactured or written. Each memory cell of a ROM chip has either a transistor for a 1 bit or none for a 0 bit. ROMs are used for programs that are essential parts of a computer’s operation, such as the bootstrap program that starts a computer and loads its operating system or the BIOS (basic input/output system) that addresses external devices in a personal computer (PC).
EPROM (erasable programmable ROM), EAROM (electrically alterable ROM), and flash memory are types of nonvolatile memories that are rewritable, though the rewriting is far more time-consuming than reading. They are thus used as special-purpose memories where writing is seldom necessary—if used for the BIOS, for example, they may be changed to correct errors or update features.

" height="20" alt="HEW Logo">