(GCSE ARCHIVE) Computer Systems and Databases Flashcards
What is hardware?
Hardware is the physical components that make up a computer system, such as a CPU and motherboard.
What is software?
Software is the programs that run on a computer.
What are the two types of software?
- System software: Software that governs a computer system. Examples include operating systems, utilities).
- Application software: Programs that help the user perform specific tasks. Examples include word processors, web browsers, games)
Computer systems can either be general purpose or dedicated systems. Explain what these mean. Give examples of both.
- General purpose: Designed to perform many tasks. Examples include PCs and tablets.
- Dedication systems: Designed for one particular function. Examples include controlling the function of a dishwasher.
What are embedded systems?
Computers built into other devices, like dishwashers, microwaves and TVs. They are usually dedicated systems.
What do embedded systems normally do?
What are the advantages of embedded systems?
- Embedded systems are often used as control systems. They monitor and control machinery in order to achieve a desired result.
- As they’re usually dedicated systems, and only serve one purpose, they are easier to design, cheaper to produce, and more efficient at doing their task than general purpose computers.
What is the CPU? What is a CPU’s processing power dependant on?
- The Central Processing Unit. It is the brain of the computer, and processes all data and instructions.
- A CPU’s processing power is dependant on many characteristics, such as clock speed, number of cores, cache size and type.
What are the 5 main part of a CPU?
- The Control Unit (CU)
- The Arithmetic Logic Unit (ALU)
- Cache
- The Clock
- Buses
What is the control unit (CU)?
What is its main job?
What does it do?
- The control unit controls the CPU.
- Its main job is to manage the fetching, decoding, and execution of program instructions, by following the Fetch-Execute cycle.
- It controls the flow of data inside the CPU and outside the CPU.
Arithmetic Logic Unit (ALU)
- Does all the calculations in the CPU
- It completes simple addition, subtraction, and compares the size of numbers. It can do multiplications and divisions by using repeated addition and subtraction.
- It performs logic operations such as AND, OR, and NOT, and binary shifts.
- Registers are used to store intermediate results of calculations.
What is cache? How expensive is it? What does it store? Where is it found, and how does this determine its speed?
- Very fast memory in the CPU. Slower than registers, but faster than RAM.
- Stores regularly used data so the CPU can access it quickly whenever it’s needed.
- Caches have a very low capacity and are expensive compared to RAM and secondary storage.
- Speed is based on distance from the CPU. Some cache is on the motherboard, some is directly on the CPU.
The Clock
- The clock sends out a regular electronic pulses at a consistent rate, to synchronise all components in a CPU.
- This pulse is used to synchronise when instructions will be carried out.
- The number of clock cycles per second is called the clock speed.
What are buses, and what are there different buses for?
- Buses are collections of wires that are used to transmit data between components of the CPU, and to other parts of the computer system.
- A processor may have separate buses for carrying data, instructions, and memory addresses.
Registers
- Small, high-speed storage locations that temporarily hold data and instructions.
- Super-quick to read/write to, quicker than any other form of memory.
Describe the ‘Fetch’ of the FDE cycle
1) The control unit reads the memory address of the next CPU instruction.
2) The instruction stored in that address is copied from memory to one of the registers.
3) The memory address in the control unit is incremented to point to the address of the next instruction, ready for the next cycle.
Describe the ‘Decode’ of the FDE cycle
1) The instruction that was copied from the memory is decoded by the control unit.
2) The control unit prepares for the next step, e.g. by loading other values into the registers.
Describe the ‘Execute’ of the FDE cycle
- The instruction is performed. This could be: Loading data from memory. writing data to memory, doing a calculation or logic operation, changing the address in the CU, or halting the operation.
4 different types of memory in a computer
- Registers
- Random Access Memory (RAM)
- Cache
- Read Only Memory (ROM)
Volatile memory
Storage (such as RAM) that is wiped clean of its data when power is cut off from a device.
Non-volatile memory
Memory that can retain the stored data even when not powered.
RAM (Random Access Memory)
- Ram is used as the main memory in a computer.
- It can be read and written to.
- RAM is volatile memory.
- All data, files, and programs are stored while they’re in use in RAM.
- The operating system is copied from secondary storage to RAM when booting up.
- RAM is slower than cache, but much faster than secondary storage.
ROM (Read Only Memory)
- Contains all the instructions a computer needs to boot up. These instructions are called BIOS (Basic Input Output System).
- You can still update BIOS instructions however.
- Non volatile
- Used as main memory
- Can only be read, not written to.
- ROM is written to only once during manufacturing, and is built into the motherboard.
RAM/ROM requirements on Embedded vs Non-Embedded Systems
- Non-embedded systems require more RAM. They need to write data to main memory.
- ROM is only used for BIOS, which doesn’t require much memory.
- ROM and RAM are usually stored on the motherboard, away from the CPU.
- Embedded systems usually have more ROM than RAM.
- They don’t need to write data to memory.
- They normally don’t have secondary storage, so ROM is used to store all programs.
- ROM and RAM are stored on the same chip as the CPU, to save space and reduce cost.
Clock Speed
- The number of instructions a single processor core can carry out per second. Most modern CPUs use GHz (Gigahertz) to measure clock speeds.
- A clock speed of 1 GHz = 1 billion instructions processed per second.
- Can be increased through overclocking to run at a higher clock speed. This can make CPUs overheat.
CPU cores
- Each core in a CPU can process data independently of the rest.
- The more cores a CPU has, the more instructions it can carry out at once, meaning it can process data faster.
- Doubling cores doesn’t always mean double performance, as software has to be designed in order to talk advantage of the extra cores.
GPU’s (Graphics Processing Units)
- GPUs handle graphics and image processing.
- They relieve the processing load on the CPU.
What is Primary and Secondary storage? What are their differences?
- Primary storage is memory areas that CPU can directly access, e.g. registers, cache, ROM and RAM.
- Secondary storage is non-volatile storage that isn’t directly accessible by the CPU. All data (e.g. applications, user files, OS) is stored here when not in use. Examples include HDDs, SSDs, CDs, SD cards. Generally much slower than primary storage.
Magnetic Hard Disks (HDDs
- HDDs are made of a stack of magnetised metal disks spinning between 5500 and 15000 rpm.
- Data is stored magnetically in small areas called sectors.
- Read/write heads on a moving arm are used to access sectors on the disks.
- Portable HDDs are useful for backing/transporting large amounts of data.
- HDDs are very reliable and long-lasting, despite their moving parts.
Magnetic Tape
- Very high capacity type of magnetic storage.
- Extremely low cost per GB.
- Used by large organizations for backing up large amounts of data.