How Data is Stored and Read
How data is stored and read: serial and direct access, how each method works, and where each one is used.
Key words (14)
binary, bit, data access, writing data, reading data, serial data access, sequential access, direct data access, random access, magnetic tape, batch processing, optical disc, hard disk drive, solid-state
Lesson Objectives
How data is stored on a computer

All computer data is stored as combinations of 1’s and 0’s.
A single 1 or 0 is called a binary digit or ‘bit’ for short.
Strings of bits are known as binary.
Binary comes from the term ‘bi’, which means 2:
- Bicycle = a bike with 2 wheels
- Bipedal = animals that walk on 2 legs.

Data access

There are 2 ways that data is accessed from a computer:
- Serial data access - older method of data access
- Direct data access - newer method of data access.
Both methods have advantages and disadvantages.

Serial data access

This method is also called sequential access.
Data is accessed by starting at the beginning and then searched through in sequence until the required information is found:
- Think of old film reels where the movie starts at the beginning and data is read in order until the movie is finished.
Searching from the beginning of the storage medium to the end makes this type of data access very slow.

Serial data access - Image

This image shows how serial data access works.
The computer is looking for a specific bit of data (bit 7).
The computer starts at the beginning (bit 1) and searches through each bit in order until it arrives at bit 7.
The data is then retrieved and used.

Where serial data access is used - Data backups

Serial access is used on old magnetic tapes.
Magnetic tapes are used where it is necessary to store a lot of data but where speed of access is unimportant.
Magnetic Tapes are still used for backing up large amounts of data in organisations like schools and business.

Where serial data access is used - Batch processing

Serial access medium (like magnetic tapes) are also used in batch processing systems like payroll and in the preparation of utility bills.
Because serial access works by accessing all of the data in order, there is no danger of missing out someone's wage payment or bill invoice.

Examples of storage medium that use serial access


Direct data access

This allows us to quickly access data stored on any part of the medium.
This method is also called random access.
Direct access is used on all storage medium other than magnetic tape.
The computer calculates exactly where the data has been stored and can go straight to it directly (instant access).
- The computer is not forced to start accessing the data at the beginning and then working through bit-by-bit like with serial access
- This makes accessing data much faster.

This allows us to quickly access data stored on any part of the medium.
Direct data access - Image

This image shows how direct data access works.
The computer is looking for a specific bit of data (bit 7).
The computer knows where the bit of data is and goes straight to it. Bits 1 to 6 are skipped past.
The data is then retrieved and used.

An example of direct data access

A good comparison as to how direct access differs to serial access is to think of how DVD movies work compared to old film-reel movies.
In a DVD movie you can jump directly to any scene you want but in a film-reel you have to move through every scene until you come to one you want to watch.

Where direct data access is used

You wouldn't want to wait around at a shop checkout while the system was trying to access the price of potatoes!
Direct data access is used with all modern storage medium such as hard disk drives, optical discs and solid-state drives:
- The large size of modern files makes fast access very important.
Direct access medium are used in situations where fast access to data is important like in online booking systems and point-of-sale (POS) terminals in shops.

You wouldn't want to wait around at a shop checkout while the system was trying to access the price of potatoes!
Examples of storage medium that use direct access



Summary of serial and direct access
| Serial access | Direct access |
|---|---|
| Bits of data are accessed one by one in sequence until the correct bit is found. | Bits of data are accessed directly. |
| A very slow method of accessing data. | A very fast method of accessing data. |
| Used for purposes where speed of data access is not important. | Used for purposes where speed of data access is important. |
| Used in magnetic tape storage medium such as backup cassette tapes. | Used on all modern storage medium such as hard disk drives, optical discs and solid-state. |
| Advantages - data cannot be accidentally missed. Disadvantages - very slow. | Advantages - very fast. Disadvantages - it is possible that important data can be missed or skipped. |
End of the topic
You've completed the topic: lesson 2 of 7 published in this unit, and already 30% of the way through. Keep it up!
When you are ready, click the Next button below to move on to Introduction to Storage Medium.