Process Management Flashcards

1
Q

What is process creation ?

A

Processes can be created by another program or process.
The act of creation is called spawning.
Each processes is represented by a Process Control Block (PCB).

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

Give an example of process creation in a UNIX command line

A

startup = sched
ancestor = init
fork() = duplicate process
exec() = replace child with new program

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

What is process scheduling ?

A

Only one process runs at a time.
Others wait in memory / disk.
Context switching (from one process to another) is time consuming.

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

What are the process scheduling levels ?

A

High Level (HLS): Admit or reject new processes
Medium level (MLS): Suspend or resume processes
Low-Level (LLS): Pick the next process for the CPU

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

What is the the three state model ?

A

READY - waiting for CPU
RUNNING - executing
BLOCKED - waiting for I/O

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

What transitions are involved in the three / five state model ?

A

dispatch, timeout, I/O wait, I/O Completion, termination.

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

What is the five state model ?

A

Adds READY SUSPENDED, and BLOCKED SUSPENDED

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

What is the process life cycle ?

A

READY –> RUNNING,
RUNNING –> BLOCKED (after I/O request),
BLOCKED –> READY (once I/O completes),
READY –> RUNNING (when CPU is available)

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