when a process is running it has an identifier, state, priority, pc, memory pointers, context data, I/O status info and accounting info.
A process control block contains all these elements and is created and managed by the OS, allowing support for multiple processes.
a trace is a list of instructions that are executed.
a dispatcher is a small program that switches the processor between processes.
two-state process models allow processes to be either running or not running. Processes can be created by the OS or spawned by a parent process. To indicate completion a HALT instruction generates an interrupt, a user does a specific action, there was a fault/error or the parent process terminates.
Five state process models have new, ready, running, blocked and exit processes.
three-state process models have ready, running or blocked processes.
Ready processes are loaded into memory and waiting to be assigned a processor. Only one process is held in this state and the registers hold values for it.
blocked processes can’t run even if the processor were free. Normally they are waiting for a slow I/O. If lots of processes were in this state they can be moved to the disk to free up memory (suspend state). therefore you can have blocked/suspend state and ready/suspend state.
suspended processes may be due to the OS suspecting the process of causing a problem, interactive user request, timing or a parent process request.
describe what is contained in:
memory tables keep track of memory and include information on allocation of main/secondary memory to processes, protection attributes and info needed to manage virtual memory.
I/O tables are used by the OS to manage devices and channels of operations and location used as source/destination of transfer
file tables are sometimes maintained by the file management system and contain info about the location, status and existence of files.
process tables contain processes’ current states, process ID, location etc. This is contained within process control blocks.
process control block information is in 3 main categories: