Module 2: Processes, Threads, Resources Flashcards

1
Q

Define a Process

A

A process is an instance of a program being executed by an OS.

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

Define a PCB

A

The OS keeps track of each process using a PCB: A data structure that holds information for a process, including the current instruction address, the execution stack, the set of resources used, and the program being executed. The PCB is the concrete representation of a process.

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

Draw and describe the process diagram and the states and transitions.

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

Define a Context Switch

A

A context switch is the transfer of control from one process to another.

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

Describe the benefits of a virtual CPU

A

Multi-user support,
multi-CPU transparency,
portability

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

List the contents of a generic PCB

A

CPU_state, process_State, memory, scheduling_information, accounting_information, open_files, other_resources, parent, children

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

Describe parent-child relationships for processes.

A

4 fields track parent child relationships: parent, first_child, younger_sibling, and older_sibling

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

Define a Resource Control Block

A

an RCB is a data structure that represents a resource. A generic RCB contains: resource_description, state, and waiting_list

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

Define a thread

A

A thread is an instance of executing a portion of a program within a process without incurring the overhead of creating and managing separate PCBs

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