TOPIC 5.2: PRIMARY AND SECONDARY STORAGE

 

Introduction.

Secondary storage devices hold files that are not currently being used. For a file to be used it must first be copied to main memory first. After any modifications files must be saved to secondary storage. It is advisable to save your data files at the regular intervals as you work on them as data can be lost unexpectedly because of various reasons like interruption in power supply, memory management problems, freezing keyboard, etc.

As secondary storage media can be damaged and files on them become corrupted, it is suggested to make back-up copies of valuable files on a regular basis. Lots of people skip the last but very important step in the backup procedure - check that the backup copy of files is not damaged.

 

The Difference Between Primary and Secondary Storage.

  1. RAM chips are located on the motherboard so the distance the electrical signals have to travel from the CPU to RAM or in the opposite direction is much shorter compared to the distance between the CPU and secondary storage devices. The shorter the distance, the faster the processing.
     
  2. Also working with the secondary storage involves mechanical operations like spinning

 

Storage Hierarchy.

The various levels of memory from registers to cache, to primary, to secondary storage have decreasing cost and speed and increasing capacity.

Type of Memory Access Speed Capacity Cost
Registers (inside the CPU) Highest Lowest Highest
Cache      
Primary storage      
Secondary storage Lowest Highest Lowest

Types of Access

Secondary storage devices provide direct access to data or sequential access.

Direct access, also called random access, means that the system maintains a list of data locations and the required piece of data can be found quickly. The most common direct access storage is the disk.

The most popular types of disks today are floppy disks, hard disks and optical disks.

Sequential access means the computer system must search the storage device from the beginning until it finds the required piece of data. The example would be a magnetic tape where data is stored sequentially and can be processed only sequentially.


Primary and Secondary Storage

Why do computers need memory?

Memory is the computer's working storage: it serves as its work table or desk.

Storing instructions
The fastest CPUs depend on getting instructions fast
Storing information
The only direct way to make changes
(putting in new information, calculating answers, moving words...)
Working space
This is like the desktop of an office worker. It is necessary for spreading out books and papers while working on them.

Primary Storage = MEMORY

Fastest way to get information to the CPU
On a simple microcomputer: about 233,000,000 characters, or about 60,000 pages of typing, to the CPU each second (for a 233 mHz Pentium-based computer)
Volatile
= "evaporates quickly:" Primary storage can disappear quickly: loss of electricity, making mistakes, or just changing

Two kinds of memory are most common:

Secondary, or "Auxiliary" Storage

It's not so swift, but longer-lasting:


Why do computers need secondary storage?

Common types of storage:

        -Diskettes: can be removed from the computer
                    5.25 inch "floppy" disk (no longer common)
       - Hard disk or Hard drive (same thing)
                - CD-ROM 

SECONDARY STORAGE DEVICES

            1. Magnetic disk (hard disks and floppy disks);

            2. Magnetic tape;

            3. CD-ROM;

            4. WORM disks;

            5. Magneto-optical disks.

HARD DISKS

FLOPPY DISKS

CD ROM

        - software distribution (e.g. word for windows, windows 95);

        - games;

        - reference material such as encyclopedias, telephone directories, past copies of newspapers, art catalogues, dictionaries;

        - advertising, such as the free CDs commonly distributed with computer magazines.

WORM DISKS

MAGNETO-OPTICAL DISKS


RESOURCE:

P M Heatcote & K R Bond, [A Level Computing], Letts Educational Ltd., 1997.

Hosted by www.Geocities.ws

1