4. Operating systems and computer architecture Flashcards
Functions of an operating system
Controls inputs and outputs Controls interrupts Security (log on) Memory management Error handling Loading software
What is an interrupt?
A signal sent from a device or software to the processor to cause it to temporarily stop.
When is an interrupt used?
When a disk drive is ready to receive more data
An error has occurred
When the user presses ctrl alt del
A software error has occurred
What do interrupts allow computers to do?
Appear to do many things at the same time e.g. have several windows open at the same time
What is the purpose of an interrupt handler?
Stores the progress on each task when an interrupt is used and the computer does something else
What is a buffer?
A temporary memory area used to store data when hardware or the internet is running slower than the processing speed of the computer.
What is the purpose of an address bus?
Carries signals relating to the location of data between the processor and the memory
What is the purpose of a data bus?
Sends data between the processor and memory and the input/output devices.
Control bus
Carries signals relating to the control and coordination of all activities with the computer.
What is an MAR?
Memory address register - stores the address of the next register to be read.
What is an MDR?
Memory data register - stores the contents of the address in the MAR.
What is the ALU?
Arithmetic and logic unit -where instructions are carried out.
What is the PC?
Programme counter - keeps track of which register is being looked at next.
What is the CIR?
Current instruction register - stores the current instruction.
How does the fetch decode execute cycle work?
- The PC contains the address of the next instruction which has to be fetched.
- The address is copied into the MAR using the address bus.
- The instruction at the location in the MAR is stored in the MDR.
- The instruction in the MDR is copied into the CIR.
- The value in the PC is incremented by 1.
- The instruction is decoded and executed.