Section 2: Systems Software Flashcards
What is an OS?
A program that manages computer operation. (Essentially a bridge between user and hardware).
Where is the OS stored?
Permanent Storage (i.e. a HDD)
What is a loader?
A loader is a small program (held in ROM) that sends instructions to copy the OS to RAM. This happens during boot-up.
What are the main functions of an OS?
- Memory Management
- Interrupt Service Routines (ISR’s)
- Processor Scheduling
- Backing Store Management
- Management of all I/O.
What is memory management?
Where the OS handles allocation of memory and management of space, using techniques such as paging and segmentation.
What is paging?
- Memory is split into fixed page sizes (eg 4kb)
- A program may be held in non-contiguous pages.
What is a page table?
A page table uses mapping to store a link between the physical memory address and the logical memory address.
What is segmentation?
The logical division of address space into varying length segments.
What is Virtual Memory?
Where the OS swaps pages to secondary storage.
What is a disadvantage of Virtual Memory?
Processor time is consumed during the swap. If a computer is spending a large amount of time swapping files a performance drop will be noticeable since more time is spent swapping than on program tasks.
What is an Interrupt?
A signal from a software program, hardware device or CPU internal clock.
INTERRUPTS ENABLE MULTI-TASKING!
When does an Interrupt occur?
When an application program terminates or requires access to the OS services e.g. a printer out of paper.
It may also occur from a timer, to move the CPU onto the next process.
What happens when the CPU receives an interrupt signal?
- It suspends execution of the current process and disables all lower priority interrupts.
- The values of the PC and other registers are put into a system stack, whilst the ISR is called to deal with the Interrupt.
- Dependant on the Interrupt type, a particular routine may be ran to service it.
- Once finished, the values are taken from the stack and put back into the CPU.
What is special about Interrupts?
They have priorities. A low priority interrupt may be disabled if a higher priority is being serviced.
An example order is:
1) Power Fail Interrupt
2) Clock Interrupt
3) I/O device requests
What is processor Scheduling?
The Where the OS queues tasks for max efficiency.