OS + Kernel mode video Flashcards

1
Q

What does the mode bit do?

A

If set to one, the processor is in privilege mode/kernel mode and can use any instruction in the instruction set.

If set to zero, instruction use is limited in restricted mode/user mode.

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

How can a mode bit be flipped to one?

A

An interrupt

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

Can user mode interact with io devices? (graphics card, disc etc.)

A

No, only kernel mode

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

What happens if an infinite loop occurs within a system call? Does the processor just get stuck?

A

No, a timer on the hardware level sends an interrupt once it reaches zero to prevent this scenario.

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

How do drivers work?

A

They run in kernel mode “along side” the OS.

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

Why do devices like GPU’s need drivers?

A

OS developers can’t optimize/account for every single device. Drivers fix that

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

What are the benefits of using system calls?

A

Hardware abstraction, Security, Portability

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

What are the cons of system calls?

A

Performance overhead, platform dependency

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