Chapter 3: Computer Structure Flashcards
Computer system
A combination of hardware and software components that allow the input, processing and output of data
What does a computer system do?
Its components work together to form a working solution to a problem
Hardware
The physical components of a computer system
Software
Programs that run on a computer system
What are the four main components of a computer system? The optional fifth component?
- Input
- Processing
- Output
- Storage
- Communication
What are some examples of computer systems other than PCs? (3)
- Mobile phones
- Cash machines
- Engine management systems in modern cars
Auxiliary device
A piece of equipment that can be connected to a computer and used with it e.g. a printer
Peripheral OR Peripheral device
An auxiliary computer device which provides input, output or storage functions for a computer, without providing computing-intensive functionality
What are some examples of peripherals? (6)
- Mouse
- Keyboard
- Printer
- Webcam
- External drives
- CD-ROM
Input device
A hardware device that takes real-world data and converts it into digital form
What are some examples of input devices? (6)
- Keyboard
- Mouse
- Sensors (e.g. those in touchscreens)
- Microphone
- Camera
- Scanner
Output device
A hardware device that presents digital data stored on a computer in a meaningful form
What are some examples of output devices? (5)
- Monitors (e.g. CRT, TFT)
- Printers (e.g. laser, inkjet)
- Speakers
- Lights (e.g. LEDs)
- Actuators (motors which perform mechanical actions)
Reliability
How much a system can be depended upon to be available when needed
Why is the reliability of a computer system important?
There could be health and safety implications if certain systems failed e.g. if a hospital system failed, people could die.
What are the two ways of measuring reliability?
- Availability: the proportion of time a system is operational, usually expressed as a percentage over a period of time
- MTBF: Mean Time Between Failure, how long a system is expected to last
Robust
Describes a system that is resilient to failure
Fault-tolerant
Describes a system where redundant components stop a single failure from bringing the whole system down
Hardware redundancy
Where spare hardware components are built into a system so that, in the event of a component failing, the system can swap over to the spare
What should a company do when reliability is extremely important? (2)
- Build in hardware redundancy
2. Back up data regularly
CPU
Central Processing Unit: executes programs and manages the rest of the hardware
What does the CPU do? (4)
- Executes programs using the fetch-execute cycle
- Fetches data from main memory
- Performs calculations
- Manages the movement of instructions and data to and from peripheral devices using system buses
What are the three main units of the CPU?
- Arithmetic and Logic: performs arithmetic and logic operations
- Control: controls the actions of other components
- Registers: temporary storage within the CPU, which can be accessed at a high speed
What happens when a program runs? (4)
- A copy of the program is loaded into the main memory, from where it can be accessed by the processor
- The processor is given the program’s start address in memory
- The processor executes the program one instruction at a time following the fetch-execute cycle
- Once completed, the program is removed from main memory
What are the steps of the fetch-execute cycle? (3)
- Fetch an instruction from main memory
- Decode the instruction
- Execute the instruction
Why doesn’t the processor get instructions straight from the disk?
Accessing a hard disk is very slow compared to accessing main memory
Clock speed
How many instructions a processor can execute per second, measured in Hertz
Factors that affect CPU performance (4)
- Clock speed
- Amount of cache memory
- Number of cores
- Slow components
Multi-core processor
A single component with two or more cores
Core
Processing unit
How can multi-core processors be utilised effectively?
By writing multi-threaded software i.e. software that divides tasks up between cores
RAM
Random Access Memory: used in main memory. It is volatile, and data is retrieved at the same speed regardless of location
Random access
Data can be retrieved from any location in any order
Volatile
Unsaved contents are lost when the power is turned off
What happens when the computer is running low on RAM?
Virtual memory can be used to compensate, although the computer may run slower or even crash if disk storage is close to full
Virtual memory
Allows a computer to compensate for RAM shortages by temporarily transferring pages of data to disk storage
Cache memory
Much faster than main memory, used to store frequently used instructions or data
How many levels of cache memory are there?
3
What happens as the level of cache memory increases? (3)
- Cost decreases
- Speed decreases
- Memory size increases
L1 cache
Built onto the core and stores the most critical files
L2 cache
Located either on the core, or on a separate chip with a high-speed alternative bus, thus avoiding main bus traffic
L3 cache
Shared between cores, serving to reduce the number of calls to main memory and interaction between cores. May be significantly slower than L1 and L2, but usually twice the speed of RAM
Levels of cache memory stats in an Intel i7 CPU vs. RAM storage space
Intel i7
L1: 32Kb
L2: 256Kb
L3: ~8Mb
RAM
- 4Gb is the minimum these days
- 8Gb becoming more common
How are computer components connected?
By system buses, wires built into the lines on the motherboard
What are the three main buses?
Address: one-way, used to send a memory address from the CPU to the RAM
Data: can be used to send back an instruction from the RAM to the CPU. Two-way, as the CPU may need to get more data from the RAM
Control: carries signals to show if the Address or Data buses are already in use
Why is the control bus needed?
Only one component can transmit along a bus at any one time