Systems Software Flashcards
What is an operating system?
It is a program or set of programs that manages the operations of the computer for the user. It provides an interface for the user, application software and hardware since the user cannot directly communicate with hardware.
How does an operating system work?
- OS is held in permanent storage eg. hard disk
- Loader (small program) is held in ROM
- Computer switched on - loader in ROM sends instructions to load OS by copying it from storage into RAM.
what are the functions of an operating system?
- memory management
- interrupt service routines
- processor scheduling
- backing store management
- management of all input and output
what is memory management?
it is when the OS must manage allocation of RAM to different programs fairly since there may not be sufficient RAM for everything to be in it at once.
what are 3 methods of memory management?
- paging
- segmentation
- virtual memory
What is paging?
- memory (RAM mainly) is divided into fixed sections called pages (4Kb)
- process in memory will be allocated enough pages to run - but these may not be contiguous physically
- page table uses mapping to store a link between physical memory address + logical address space of each process
What does contiguous mean?
next to each other/adjacent physically
What is segmentation?
- similar to paging except memory is divided into segments which can be different sizes.
- Things stored in the segment may relate to parts of a program - eg. a particular function/subroutine may occupy a segment.
- segment size relates to the program structure
what is the difference between paging and segmentation?
Paging uses chunks of memory that are the same size while segmentation uses chunks of memory which are different sizes.
What is virtual memory?
- an area of secondary storage that can be used as an extension of memory when RAM is filled up and another instruction needs processor time
- pages of the current process will be stored in virtual memory until they are needed - then they will be swapped with an unused page into RAM
- advantage: it’s extra strage and can optimise computer performance when used correctly
- disadvantage: slower than using RAM
What is disk thrashing?
It is when the OS is excessively swapping pages into and out of RAM which slows down performance significantly because so much time is spent swapping pages.
What is an interrupt?
- its a signal from a software program, hardware component or internal clock to the CPU
- software interrupt = when an application program terminates or requests certain services from the OS
- hardware interrupt = when in I/O operation is complete or an error occurs eg. printer paper out
why are interrupts needed?
- I/O process is completed/sends an interrupt signal
- an error occurs eg. printer paper out
- power failure
- scheduled interrupt from the internal clock - to enable multitasking to take place
when are interrupts detected and serviced?
The CPU checks for interrupts at the end of a clock cycle for any interrupts that need to be processed