Module 2: Processes, Threads, Resources Flashcards
Define a Process
A process is an instance of a program being executed by an OS.
Define a PCB
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.
Draw and describe the process diagram and the states and transitions.
Define a Context Switch
A context switch is the transfer of control from one process to another.
Describe the benefits of a virtual CPU
Multi-user support,
multi-CPU transparency,
portability
List the contents of a generic PCB
CPU_state, process_State, memory, scheduling_information, accounting_information, open_files, other_resources, parent, children
Describe parent-child relationships for processes.
4 fields track parent child relationships: parent, first_child, younger_sibling, and older_sibling
Define a Resource Control Block
an RCB is a data structure that represents a resource. A generic RCB contains: resource_description, state, and waiting_list
Define a thread
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