Operating Systems Flashcards

1
Q

What is an Operating System?

A

A program that controls the execution of Application Programs and acts as an interface between applications and the Computer Hardware.

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

What are the 5 services provided by the OS?

OS = Operating System

A

File Management, I/O Management, Process Management, Memory Management, Multiprocessor Management

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

What is the Kernel?

A

A central part of the OS containing a range of functionality depending on design.

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

What is Kernel Mode?

A

Mode in the OS that allows you unrestricted access to memory, and access to all instructions.

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

What is User Mode?

A

A mode in the OS that only allows access to certain areas of memory and doesn’t allow access of privileged instructions.

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

What is a context switch?

A

Changing from Kernel mode to user mode and vice versa.

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

Which mode do Applications run in?

A

User Mode

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

What does a context switch involve?

A

This is computationally expensive and requires moving data in and out of registers, memory management etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
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
10
Q

What are the features of a Monolithic Kernel?

A

All services are implemented by a large kernel, any new features are added directly to the kernel, everything is connected to everything.

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

Advantage of a Monolithic Kernel:

A

Fast communication within kernel.

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

Disadvantages of a Monolithic Kernel:

A

Difficult to understand and modify, lots of dependencies. Lack of security, new includes gain access to all memory locations and all processes.

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

What are the features of a Layered Kernel?

A

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.

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

Advantages of a Layered Kernel:

A

Easy to debug due to modular design

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

Disadvantages of a Layered Kernel:

A

Poor performance due to having to move through multiple layers to obtain OS service. no direct communication.

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

What are the features of a Microkernel?

A

Has services implemented by servers and a small kernel delivers messages between them. Idea that If it doesn’t have to be in the Kernel put it in user mode.

17
Q

Advantages of a Microkernel:

A

Secure and reliable, executions done in user mode where restricted processes can’t be accesses.

18
Q

Disadvantages of a Microkernel:

A

Poor Performance due to increased system function overhead, no direct communications allowed.

19
Q

What are the features of a Modular Kernel:

A

Start with a small kernel and additional services are added loaded on via modules. OS must work equally with and without each module. no dependencies between modules.

20
Q

Advantages of a modular Kernel:

A

Fast due to not needing to load unnecessary services, modules can communicate directly with other modules.

21
Q

Disadvantages of a Modular Kernel:

A

Like a Monolithic Kernel as more modules are loaded.

22
Q

What does a Virtual Machine do?

A

A host OS provides simulated virtual hardware for one or multiple OS’s.