System calls and VMs Flashcards

1
Q

What are the different classes of interrupt?

A

Program
Timer
I/O
Hardware Failure

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

What is an interrupt?

A

An interrupt is a signal or event that prompts the CPU to stop its current execution and switch to a different set of instructions.

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

What is a system call?

A

Provides the interface between regular computer programs and the OS.

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

What is the kernel?

A

The core program that manages the talking between the hardware and software. It manages the CPU, the memory and the processes. It is the lowest layer above the CPU.

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

Kernels are divided into:

A

monolithic and microkernels

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

What is a monolithic kernel?

A

All services occur inside one program that occupies one memory space.

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

What is a microkernel?

A

When the kernel itself occupies a small space in memory while other things like device drivers and servers run as user level programs and talk to the kernel.

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

What is virtualization?

A

It is the process of simulating hardware and software in a virtual environment.

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

What is a hypervisor?

A

The software that actually runs the virtualization. It allocates and controls the sharing of the machine’s resources such as RAM, CPUs, storage space etc.

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

What are the two types of VMs.

A

Process and System

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

What is the difference between a type 1 and type 2 hypervisor?

A

A type 1 hypervisor is installed on empty bare metal hardware while a type 2 is installed on an existing OS.

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

What is a process vm?

A

Designed for isolating and running individual applications ensuring they operate in a controlled environment.

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

What is a system VM?

A

Used for virtualizing entire systems, allowing multiple OSs to exist on a single physical machine.

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

What is kernel mode?

A

the mode in which the operating system’s kernel code runs. It is designed for system-level code execution and management of system resources. It can execute any CPU instruction and reference any memory address. Crashes in this mode are catastrophic.

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

What is user mode?

A

the mode in which most user applications, such as word processors, web browsers, and games, run. It is designed for user-level code execution. Code running in user mode must delegate to system APIs to access hardware
or memory.

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

What is a context switch?

A

Transitions from user mode to kernel mode,

17
Q

What is the difference between a trap and an interrupt?

A

Traps are initiated by the program itself (e.g., system calls), while interrupts are initiated by external hardware or devices (e.g., keyboard input, disk I/O).