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

How Data is Stored and Read: 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.
How Data is Stored and Read: How data is stored on a computer

Data access

Old music cassettes use serial data access.
Old music cassettes use serial 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.

Old music cassettes use serial data access.
Old music cassettes use serial data access.

Serial data access

Old film reels access movie scenes in sequence (in order), from start to finish.
Old film reels access movie scenes in sequence (in order), from start to finish.

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.

Old film reels access movie scenes in sequence (in order), from start to finish.
Old film reels access movie scenes in sequence (in order), from start to finish.

Serial data access - Image

Forcing the computer to search through data bit by bit, from the beginning makes serial data access very slow.
Forcing the computer to search through data bit by bit, from the beginning makes serial data access very slow.

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.

Forcing the computer to search through data bit by bit, from the beginning makes serial data access very slow.
Forcing the computer to search through data bit by bit, from the beginning makes serial data access very slow.

Where serial data access is used - Data backups

Magnetic tape can store a lot of data but it is slow to access it.
Magnetic tape can store a lot of data but it is slow to access it.

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.

Magnetic tape can store a lot of data but it is slow to access it.
Magnetic tape can store a lot of data but it is slow to access it.

Where serial data access is used - Batch processing

Serial data access is perfect for batch processing to ensure that all data is processed without missing any out.
Serial data access is perfect for batch processing to ensure that all data is processed without missing any out.

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.

Serial data access is perfect for batch processing to ensure that all data is processed without missing any out.
Serial data access is perfect for batch processing to ensure that all data is processed without missing any out.

Examples of storage medium that use serial access

How Data is Stored and Read: Examples of storage medium that use serial access
Big technology companies like Google and Facebook still use magnetic tape to archive their vast amounts of data.
Big technology companies like Google and Facebook still use magnetic tape to archive their vast amounts of data.

Direct data access

Modern storage medium (such as optical discs) use direct data access rather than serial access.This allows us to quickly access data stored on any part of the medium.
Modern storage medium (such as optical discs) use direct data access rather than serial 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.
Modern storage medium (such as optical discs) use direct data access rather than serial access.This allows us to quickly access data stored on any part of the medium.
Modern storage medium (such as optical discs) use direct data access rather than serial access.
This allows us to quickly access data stored on any part of the medium.

Direct data access - Image

Because the computer doesn’t have to search through data bit by bit makes direct data access much faster than serial access.
Because the computer doesn’t have to search through data bit by bit makes direct data access much faster than serial access.

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.

Because the computer doesn’t have to search through data bit by bit makes direct data access much faster than serial access.
Because the computer doesn’t have to search through data bit by bit makes direct data access much faster than serial access.

An example of direct data access

DVD and Blu-ray movies allow you to jump straight to different scenes. This is possible through direct access.
DVD and Blu-ray movies allow you to jump straight to different scenes. This is possible through direct 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.

DVD and Blu-ray movies allow you to jump straight to different scenes. This is possible through direct access.
DVD and Blu-ray movies allow you to jump straight to different scenes. This is possible through direct access.

Where direct data access is used

Shops store product data on direct access storage medium so that transactions can be carried out quickly.You wouldn't want to wait around at a shop checkout while the system was trying to access the price of potatoes!
Shops store product data on direct access storage medium so that transactions can be carried out quickly.
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.

Shops store product data on direct access storage medium so that transactions can be carried out quickly.You wouldn't want to wait around at a shop checkout while the system was trying to access the price of potatoes!
Shops store product data on direct access storage medium so that transactions can be carried out quickly.
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

Hard disk drives
Hard disk drives
Optical discs (like DVDs)
Optical discs (like DVDs)
Solid-state medium such as flash cards and memory sticks
Solid-state medium such as flash cards and memory sticks

Summary of serial and direct access

Serial accessDirect 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!

30%

When you are ready, click the Next button below to move on to Introduction to Storage Medium.