Operating Systems Flashcards
What is the kernel?
The kernel is the central part of an operating system that manages system resources and provides services to other parts of the operating system and to applications running on the computer.
What is a context switch?
A context switch is a switch from user mode to kernel mode.
This switch is very computationally expensive as items need to be moved in and out of registry and memory, therefore operating systems should strive to avoid “switching” as much as possible.
What are the four types of kernel?
Monolithic
Layered
Microkernel
Modular
Monolithic
All services are implemented by a contextually large kernel and any new feature is added to the kernel.
In other words, everything is connected to everything.
Layered
Services are implemented by a contextually large kernel, with a layered organisation.
For example, a process stored in layer 6 may only communicate with processes from layer 7.
Microkernel
Services are instead implemented instead by servers, with a contextually small “micro” kernel delivering messages between them.
So, the kernel, instead of being the one that does everything, instead takes the role of a message handler, directing processes to dedicated “servers”.