Computers Flashcards
(38 cards)
What is the stored program concept?
Where there is main memory and a CPU interconnected by buses with there being some form of secondary storage to provide long term storage
What is the purpose of the control unit?
Decodes instructions received from main memory and coordinates the actions of the other parts of the CPU in order to execute them
What is the purpose of the arithmetic logic unit?
Performs arithmetic and logical operations on data
What is the purpose of registers?
Fast temporary storage for instructions, intermediate results and data
What is the purpose of the clock?
Synchronises other hardware components. the faster the clock, the more instructions can be executed per second
What are the purposes of the buses?
Control bus (bidirectional): Carries signals between the control unit and other components
Address bus (unidirectional): Carries the address of the memory location that the CPU will read from or write to
Data bus (bidirectional): Transfers program instructions and data between memory and the CPU
How does the fetch-decode-execute cycle work?
Fetch: The CPU places the memory address of the next instruction on the address bus. The CU sends a read signal along the control bus to memory. The content of the specified memory location is transferred along the data bus to the CPU. It’s stored in registers on arrival
Decode: The CU looks up the instruction in the CPU’s instruction set
Execute: The CU coordinate the actions of other components of the CPU to carry out the operation
Why is secondary storage needed?
Secondary storage is non-volatile so when turned on, it keeps its memory
What is an example of magnetic storage?
Hard disk drive (HDD)
How do you write on a HDD?
The read-write head magnetises the surface of the platter to a 1 or a 0. Data is stored on concentric tracks subdivided into sectors
How do you read on a HDD?
The read-write head detects the magnetic state of the platter
What is an example of optical storage?
CDs or DVDs
How do you write optical storage?
A laser burns the surface of the disk, making it more or less reflective. More reflective surfaces are called lands and represent 1. Less reflective surfaces are called pits and represent 0
How do you read optical storage?
A laser beam is shone onto the surface of the disk. A land which reflects more light than a pit represents 1 which is detected by a light sensor
What is an example of solid-state storage?
Solid state drive (SSD)
How do you write an SSD?
A current is applied to the transistor, forcing electrons into pools. A full pool represents 0 and an empty pool is 1
How do you read an SSD?
A small voltage is applied. If the pool is empty, the transistor turns on and a 1 is read. If the pool is full, the transistor doesn’t turn on and a 0 is read
What are the features of an embedded system?
- Single purpose
- Customised hardware and software
- Low power consumption
- Minimal or no UI
What are the main tasks performed by an operating system?
- Process management
- File management
- User management
- Peripheral management
How does an OS manage processes?
It uses a scheduling algorithm to ensure that every process gets a share of CPU time
How does an OS manage files?
It has a root directory branching off into different nodes which are either sub-directories or files
How does an OS manage users?
Access control: Uses login names and passwords to authenticate users
User interface: OS provides a user interface to interact with the computer
File permissions: OS grants user permissions to either read, write, execute or delete files
How does an OS manage peripherals?
The OS uses device drivers to communicate with peripheral devices
What does data compression software do?
Reduces the file size by repackaging it or removing some data so that it takes up less space in secondary storage