Operating Systems Flashcards

1
Q

What is the kernel?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a context switch?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the four types of kernel?

A

Monolithic
Layered
Microkernel
Modular

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Monolithic

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Layered

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Microkernel

A

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”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly