1.2 The Role of the Operating System Flashcards
1
Q
Kernel
A
- Most essential part of OS
- Runs in Privileged mode, having exclusive access to Hardware
- Error Handling, if application wants to acces hardware or privileged instuctions
2
Q
System Call
A
Interfaces between application program, operating system, and hardware
For software, they are often standardized and encapsulated in system libraries
For hardware, special machine instructions of the respective processor family are used when transitioning from user mode to kernel mode.
3
Q
How do system calls work?
A
- Application performs system call to acces Hardware
- OS provides Interface/functioncalls via specialized Library
- OS switches to kernel Mode
- OS Performs function on behalf of Hardware
- OS returns to user mode
- Resumes communication with software
4
Q
Interrupt Controller
A
- Part of the CPU
- Handles incoming interruption signals
- Interrupts current execution and triggers jump into OS
5
Q
How does Interruption Handling works?
A
- Error/Interruption signal comes in
- Interruption controler changes programm counter to fix interruption
- OS switches in privileged mode
- Old value of counter still stored
- Resumed after interruption is handled
6
Q
Functions of the OS
A
Manages and controls application execution
and Interaction between software and Hardware
Providing User Interfaces
* GUI
* CLI
User, Device, Resource Management
* Access rights
* Drivers - allow OS to communicate to hardware
System Security and Monitoring
7
Q
What is a Device Driver
A
- A device driver is a set of program code that controls communication between the machine and an attached device.
- In an operating system, it enables this code to interact directly with the hardware by executing it in the privileged kernel mode.
- The device drivers are loaded into the kernel as software modules for this purpose.