Operating System - Dual Mode Flashcards

1
Q

User Mode

A

User program executes in user mode

Certain areas of memory are protected from user access

Certain instructions may not be executed

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

Kernel Mode

A

Monitor executes in Kernel mode

Privileged instructions may be executed

Protected areas of memory may be accessed

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

System Call - Kernel Mode

A

When we make use of a system call we go into the Kernel Mode

The actual execution of a system calls occurs on the kernel side.

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

What is a System call

A

A mechanism for programs to request services or resources
i.e file operation, memory management, process control from the operating system’s kernel

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

Kernel mode bit

A

0

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

User mode bit

A

1

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

Privileged/ Kernel Mode instructions

A

Instructions which can only be executed in the Kernel mode

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

Why do we need dual mode?

A
  • Stops user program attempting to execute an illegal instruction or to access the memory of other uses
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What happens if a user program attempts to execute an illegal instruction or attempts to access the memory of other users

A
  • OS must terminate the program
  • OS gives error message
  • Produces memory dump file
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly