Operating Systems Flashcards
What is an Operating System?
A program that controls the execution of Application Programs and acts as an interface between applications and the Computer Hardware.
What are the 5 services provided by the OS?
OS = Operating System
File Management, I/O Management, Process Management, Memory Management, Multiprocessor Management
What is the Kernel?
A central part of the OS containing a range of functionality depending on design.
What is Kernel Mode?
Mode in the OS that allows you unrestricted access to memory, and access to all instructions.
What is User Mode?
A mode in the OS that only allows access to certain areas of memory and doesn’t allow access of privileged instructions.
What is a context switch?
Changing from Kernel mode to user mode and vice versa.
Which mode do Applications run in?
User Mode
What does a context switch involve?
This is computationally expensive and requires moving data in and out of registers, memory management etc
What are the four types of Kernel?
Monolithic, Layered, Microkernel, Modular
What are the features of a Monolithic Kernel?
All services are implemented by a large kernel, any new features are added directly to the kernel, everything is connected to everything.
Advantage of a Monolithic Kernel:
Fast communication within kernel.
Disadvantages of a Monolithic Kernel:
Difficult to understand and modify, lots of dependencies. Lack of security, new includes gain access to all memory locations and all processes.
What are the features of a Layered Kernel?
Services implemented by a large Kernel with a layered organisation. Different tasks are implemented by a specific layer, and each layer can only communicate with adjacent layers.
Advantages of a Layered Kernel:
Easy to debug due to modular design
Disadvantages of a Layered Kernel:
Poor performance due to having to move through multiple layers to obtain OS service. no direct communication.