CH3 Flashcards
Processes (94 cards)
a program in execution; process execution must progress in sequential fashion
Process
_________ is the part of the process which is the program code.
Text section
_________ is the process part which contains temporary data such as function parameters, return addresses, and local variables.
Stack
__________ is the process part which contains global variables, arrays, etc.
Data section
________ is the process part which contains the memory dynamically allocating during run time.
Heap
Program is (passive/active) entity stored on disk (executable file), process is (passive/active).
Program is passive.
process is active.
Program becomes ________ when executable file loaded into memory.
process
T/F: Execution of program started via GUI mouse clicks, command line entry of its name, etc.
True
T/F: Each program can only be one process.
f, one program can be several processes; consider multiple users executing the same program
A process needs to consist of four segments to be in memory: ________ segment, _______ segment, ________ segment, and __________ segment.
stack, heap, data, text.
In a single-CPU system, only one process may be in ________ state.
running; many processes may be in ready and waiting states.
As a process executes, it changes state into ________ when the process in being created.
new
As a process executes, it changes state into ________ when instructions are being executed.
running
As a process executes, it changes state into ________ when the process is waiting for some event to occur.
waiting
As a process executes, it changes state into ________, when the process is waiting to be assigned to a processor.
ready
As a process executes, it changes state into ________, when the process has finished execution.
terminated
Process state change cycle continues until the process exists, falls, or is terminated, moves to _________ state.
terminated
If the process is running and the core is needed (say for an interrupts), the process will return back to the __________ state.
ready
The process is scheduled onto a core, when the core is available, it is now in a __________ state.
running
Information associated with each process is called ___________
Task Control Block
The Process Control Block (PCB) includes information about each process such as the process state, program ________, CPU _______, CPU ________ information, ___________ information, ____________ information, and ___________ status information.
program counter, CPU registers, CPU scheduling information, memory-management information, accounting information, I/O status information.
The _________ indicates the location of the instruction to next execute.
Program Counter
The ___________ shows the memory allocated to the process.
Memory-management information
The __________ are the contents of all process-centric registers.
CPU registers