Chapter 2.7 (Functions of an operating system) Flashcards
What is an operating system?
An operating system is a program or set of programs that manages the operations of the computer for the user
What are the functions of an OS?
- Provides user interface
- Interrupt service routines
- Processor scheduling
- Memory management
- Peripheral management
What are two examples of memory management?
Virtual memory and Paging and Segmentation
What is the difference between paging and segmentation?
Paging - Data is physically divided into fixed sized pages to store data non-contiguously
Segmentation - Data is logically divided into different sized segments to be stored non-contiguously
How is Virtual memory used?
The OS may swap pages of temporarily inactive jobs to make room for the process being called
What is an interrupt?
An interrupt is a signal from a software program asking for the CPU’s time
When the OS Receives a interrupt what happens?
Priority is checked
- if higher priority, all actions are stored in a stack and suspended and then an interrupt service routine is loaded
- if lower priority, processes are handled like normal
What types of processor scheduling algorithms are there?
- Round robin
- First come first served
- Shortest remaining time
- Shortest job first
- Multi-level feedback queues