lecture 14 Flashcards

Modes, Exceptions, and Processes

1
Q

kernel mode

A

CPU mode –> handles system instructions on behalf of the user
*handles system calls and commands that configure hardware

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

user mode

A

CPU mode –> handles user instructions (code)
*cannot handle system calls/commands that configure hardware

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

why are there 2 modes?

A

to handle different kinds of instructions

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

when would kernel mode be used?

A

system calls, commands that configure hardware

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

when would user mode be used?

A

user program instructions (code)

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

types of synchronous exceptions

A
  1. trap (intentional system calls)
  2. fault (unintentional page faults)
  3. abort
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

trap

A

returns to next instruction

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

fault

A

page faults (recoverable)
protection faults (unrecoverable)

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

abort

A

illegal instruction, machine check (unrecoverable)

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

asynchronous exceptions

A

caused by an event external to the CPU

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

types of asynchronous exceptions

A
  1. timer interrupter
  2. I/O interrupt from external device
How well did you know this?
1
Not at all
2
3
4
5
Perfectly