Jump to content

Computer memory

From Simple English Wikipedia, the free encyclopedia
Revision as of 15:08, 5 December 2019 by Brian R Hunter (talk | changes) (linked to more appropriate page)

The computer memory is a temporary storage area. It holds the data and instructions that the Central Processing Unit (CPU) needs. Before a program can run, the program is loaded from some storage medium into the memory. This allows the CPU direct access to the computer program. Memory is needed in all computers.

A computer is usually a digital electronics device, which understands only electricity on and electricity off. This is expressed by using two symbols – 0 and 1 – which are called binary digits or bits. Numbers and text characters are represented as codes, which are made up of combinations of 0s and 1s. Simple character codes are called ASCII (the American Standard Code for Information Interchange), and Unicode. In ASCII, eight bits – any combination of 0s and 1s – form one character or symbol. For example, the letter A is denoted by the code 01000001. The basic working unit of the computer's memory is a group of eight bits, which is called a byte.

The computer's memory consists of many millions or billions of bytes. To make it easier, the unit K (for kilobytes) can be used to express memory capacity. One K equals 1,024. For example, 64K bytes of memory is the same as 65,536 (1,024 × 64 = 65,536) bytes. For larger memory capacities, the units mega and giga can be used. One megabyte of computer memory usually means 1024 kilobytes, which is 1,048,576 bytes, whereas one gigabyte means 1024 megabytes, which is 1,073,741,824 bytes. The size of the memory address that the computer uses limits the number of bytes it can handle.

The CPU calls instructions and data from the computer's memory. Because the same computer performs different tasks at different times, the memory is erasable—much like an audio cassette. Part of the memory, However cannot be erased.

Read only memory

There are some programs and instructions which the computer will always need. Read only memory (ROM) is the permanent memory which is used to store these important control programs and systems software to perform functions such as booting up or starting up programs. ROM is non-volatile. That means the contents are not lost when the power is switched off. Its contents are written when the computer is built, but in modern computers, the user can change the contents using special software.

Random access memory

Random access memory (RAM) is used as the working memory of a computer system. It stores input data, intermediate results, programs, and other information temporarily. It can be read and/or written. It is usually volatile, which means that all data will be lost when the power is turned off. In most cases it is loaded again from the hard disk which is used as data storage.

Non-volatile memory

Solid-state drives are one example of non-volatile storage.

Non-volatile memory is computer memory that keeps the stored information when not powered. Examples of non-volatile memory include read-only memory and flash memory.

It can sometimes refer to computer storage. Magnetic computer storage devices like hard disk drives, floppy disks and magnetic tape), and optical discs, paper tape and punched cards are also non-volatile.