OS + Kernel mode video Flashcards
What does the mode bit do?
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 can a mode bit be flipped to one?
An interrupt
Can user mode interact with io devices? (graphics card, disc etc.)
No, only kernel mode
What happens if an infinite loop occurs within a system call? Does the processor just get stuck?
No, a timer on the hardware level sends an interrupt once it reaches zero to prevent this scenario.
How do drivers work?
They run in kernel mode “along side” the OS.
Why do devices like GPU’s need drivers?
OS developers can’t optimize/account for every single device. Drivers fix that
What are the benefits of using system calls?
Hardware abstraction, Security, Portability
What are the cons of system calls?
Performance overhead, platform dependency