Chapter 2 - 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 n virutal memory until they are needed - then they wil