Lecture 6 Flashcards
1
Q
What makes the 7 state model different?
A
Blocked/Suspend and Ready/Suspend are added as states
2
Q
Steps for process creation
A
- Create process ID
- Allocate Space in MM
- Create the PCB
- Set appropriate linkages
- Expand the data structures
3
Q
What is the ready queue
A
Where the PCB goes, a dynamic linked list
4
Q
User mode
A
PSW = 1
5
Q
Kernel Mode
A
PSW =0
6
Q
Process Switching occurs due to what?
A
Interrupts, (I/O, Clock) or traps (errors, exceptions)
7
Q
When a mode switch occurs what happens?
A
Processor will save the PCB so the program can resume later
8
Q
Mutual exclusion
A
One process uses each resource at a time
9
Q
Concurrency
A
nothing should be left idle
10
Q
Basic requirement of concurrency
A
Mutual exclusion enforcement