CPUs Microcode Protection and Protection Modes Flashcards
When CPU runs in Kernel mode, it can:-
- run any ___
- modify any ___ in ___
- access and modify any ___ in CPU and devices
- full control of the computer
instruction; location, memory; register
The OS services runs in ___ mode.
Kernel/User
Kernel
When CPU runs in User mode, it can:-
- use a limited set of ___
- modify only sections of ___ assigned to the process running the program
- access only ___, and cannot access ___ in ___
- limited access to the resources of the computer
instructions;
memory;
a subset of registers in CPU, registers, devices
The user programs run in ___ mode.
Kernel/User
User
Kernel/User Mode:
1. When the OS boots, it starts in ___ mode.
kernel
Kernel/User Mode:
2. In ___ mode, the OS sets up the ___ and ___ all the devices.
kernel, interrupt vector, initializes
Kernel/User Mode:
3. Then it starts the first process and switches to ___ mode.
user
Kernel/User Mode:
4. In ___ mode, the OS runs all the ___.
user, background system processes (daemons)
Kernel/User Mode:
5. Then it runs the ___ or ___.
user shell, windows manager
Kernel/User Mode:
6. While running in ___ mode, the program switches to ___ mode to request OS services (___).
user, kernel, system calls
Kernel/User Mode:
7. User programs also switch to ___ mode when ___ arrives.
kernel, interrupt
The interrupts are executed in kernel mode.
True/False
True
The interrupt vector can be modified in both kernel and user mode.
True/False
False. Only in kernel mode
Most of the CPU time is spent in __ mode.
User
Separation of user/kernel mode is for:-
___ (make sure user have enough privileges to run the call)
___ (Killing bugs and crashing)
___ (OS calling in kernel mode for fair access)
Security; Robustness; Fairness
If a process that tries to write to an invalid memory location, the OS will ___ the program, but the OS ___.
kill, continue to run