GoalReview storage units, the processor, and the choice of hardware and software from Units 3 and 4.
New words
byte · a group of 8 bits, enough to store one characterprimary storage · fast memory that holds what the computer is using nowsecondary storage · storage that keeps files and programs when the power is offclock speed · how many instructions the processor carries out each second, measured in gigahertz (GHz)
Explanation
A bit is one 0 or 1, and a byte is 8 bits. Each step up the units of storage is 1024 times bigger: a kilobyte is 1024 bytes, a megabyte is 1024 kilobytes and a gigabyte is 1024 megabytes. To change a bigger unit into a smaller one, multiply by 1024. Primary storage is fast and holds the work that is open now, but it loses its data when the power goes off. Secondary storage is slower and bigger, and it keeps files for later. The processor follows the instructions, and a higher clock speed in gigahertz means more instructions each second. Hardware is the parts that you can touch and software is the programs. When we choose a device we balance functionality, compatibility, cost, speed and aesthetics.
secondary storage→primary storage→processor
Worked examples
Word length
Bytes
Bits
6 characters
6
48
A word of 6 letters needs 6 bytes, because one byte stores one character. That is 6 × 8 = 48 bits.
Change
Working
Answer
2 kB to bytes
2 × 1024
2048 bytes
5 MB to kB
5 × 1024
5120 kB
3 GB to MB
3 × 1024
3072 MB
Changing units: multiply by 1024 each time you go down one step.
Factor
Question for the library
functionality
can it run the scanning program?
compatibility
does it work with the old printer?
cost
is it a fair price?
A school library has three jobs for a new device. It must run the book-scanning program, work with the printer it already has and not cost too much. The first two are functionality and compatibility, and they matter most, because a cheap device that cannot run the program is no use.
Class activity
Desk and cupboard (no computer): put a few books in a cupboard or box (secondary storage) and keep a table clear (primary storage). Ask a helper, who is the processor, to do a job that needs two books. The books must come from the cupboard to the table before the job. Then switch the lights off for a moment and clear the table, to show what happens to primary storage when the power goes off. Write down what is kept and what is lost. If you have a computer or tablet, find out how much storage it has and which unit is used.
Practice
1
How many kilobytes are in 4 megabytes? How many bytes are in 3 kilobytes?
4 × 1024 = 4096 kilobytes. 3 × 1024 = 3072 bytes.
2
A note is 20 characters long. How many bytes and how many bits does it need?
One byte stores one character, so it needs 20 bytes. That is 20 × 8 = 160 bits.
3
Sort these into hardware and software: a speaker, a drawing program, a mouse, an operating system.
Thing
Hardware or software?
speaker
?
drawing program
?
mouse
?
operating system
?
Hardware: the speaker and the mouse. Software: the drawing program and the operating system.
4
Two computers are the same price. One has a processor of 2 GHz and the other has 3 GHz. Which is probably faster, and which other factors should the buyer still check?
The 3 GHz processor can do about 3 billion instructions each second, so it is probably faster. The buyer should also check functionality, compatibility and storage, because speed is only one factor.