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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

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

How do system calls work?

A
  1. Application performs system call to acces Hardware
  2. OS provides Interface/functioncalls via specialized Library
  3. OS switches to kernel Mode
  4. OS Performs function on behalf of Hardware
  5. OS returns to user mode
  6. Resumes communication with software
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Interrupt Controller

A
  • Part of the CPU
  • Handles incoming interruption signals
  • Interrupts current execution and triggers jump into OS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does Interruption Handling works?

A
  1. Error/Interruption signal comes in
  2. Interruption controler changes programm counter to fix interruption
  3. OS switches in privileged mode
  4. Old value of counter still stored
  5. Resumed after interruption is handled
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly