8
Memory The CPU in the computer fetches data and instructions from memory to process. This type of memory is called primary memory and it is the only memory the CPU can access directly. The two main types of primary memory are RAM( Random Access Memory) and ROM (Read Only Memory)

Memory The CPU in the computer fetches data and instructions from memory to process. This type of memory is called primary memory and it is the only memory

Embed Size (px)

Citation preview

Page 1: Memory The CPU in the computer fetches data and instructions from memory to process. This type of memory is called primary memory and it is the only memory

Memory

The CPU in the computer fetches data and instructions from memory to process.

This type of memory is called primary memory and it is the only memory the CPU can access directly.

The two main types of primary memory areRAM( Random Access Memory) and

ROM (Read Only Memory)

Page 2: Memory The CPU in the computer fetches data and instructions from memory to process. This type of memory is called primary memory and it is the only memory

RAM

RAM is memory that can be accessed and changed by the computer at any time.

RAM stores the programs and data that the computer is currently working on.

The operating system will also be loaded into RAM in order to run.RAM needs power to store data and is volatile (i.e. if you turn off the power everything in RAM is lost)

Data is stored in RAM as a charge in an electronic circuit and will leak away if not kept refreshed.

Page 3: Memory The CPU in the computer fetches data and instructions from memory to process. This type of memory is called primary memory and it is the only memory

RAM – What’s in it?

If you are listening to some music while researching onthe internet for information to use in a word processeddocument, the RAM might contain:

– The operating system for the computer– Music player software– The music file you are listening to– The web browser software– The website you are looking at– The word processor software– The word-processed file– Anti-virus software

Page 4: Memory The CPU in the computer fetches data and instructions from memory to process. This type of memory is called primary memory and it is the only memory

RAM What happens if you run out it?

Answer: the computer stops running or 'crashes‘ unless the operating system

deals with It intelligently .

the operating system uses some clever tricks to make part of the hard disk appear as extra RAM. This is called 'virtual memory'. But it is very slow compared to 'real' RAM and so the operating system may give a warning such as 'you are low on virtual memory, please close some applications'.

Question – What will adding more RAM do to the computer’s performance?

Adding more RAM to a computer will improve the performance of that computer

How does it do this?

by making more memory available for direct access from the CPU.

Page 5: Memory The CPU in the computer fetches data and instructions from memory to process. This type of memory is called primary memory and it is the only memory

RAMDoes it always have something in it?

When the computer is first switched on RAM will be empty because it is volatile and needs power to maintain the contents.

In order to supply the instructions needed to start up the computer, the CPU needs access to permanently stored instructions, the boot program.

Page 6: Memory The CPU in the computer fetches data and instructions from memory to process. This type of memory is called primary memory and it is the only memory

ROMWhat is it?

ROM is a special kind of memory which stores the instructions which the computer uses when it 'boots up' - the BIOS (basic input output system).

Can you lose the information stored in it?

ROM retains its data even without power, so even when the computer is switched off, it will not lose the data which is saved onto it.

Can you change what is stored in it?

Because the data is 'read only', it can be read but not changed by the user.

The key thing to remember about ROM is that the data is not erased when the computer is switched off - the data is stored permanently. This type of memory is also called

'non volatile memory'

Page 7: Memory The CPU in the computer fetches data and instructions from memory to process. This type of memory is called primary memory and it is the only memory

ROM

• Many devices, including music players, mobile phones and cameras, need ROM to boot them up.

• Since many of these devices have the operating system stored in ROM, the type of ROM used is changeable through a process called ‘flashing’, hence flash memory.

Page 8: Memory The CPU in the computer fetches data and instructions from memory to process. This type of memory is called primary memory and it is the only memory

Sum it up