AND ANSWERS 100% CORRECT
What is a process? - ANSWER-The active implementation of an otherwise passive
program.
Within the process context (also known as user context), there are four components: -
ANSWER-Text, data, stack, heap.
Within the register context, the components are: - ANSWER-General purpose registers,
stack pointer, program counter, etc..
PID 0 - ANSWER-Swapper/sched, used for memory management.
PID 1 - ANSWER-Init, continually running in the background and used to
startup/shutdown the system.
Process state created - ANSWER-Also known as "new".
Process state waiting - ANSWER-Also known as "ready", when process is scheduled
for execution. Can transition to running via scheduler dispatch.
Process state running - ANSWER-Actively executing instructions on the CPU.
Process state blocked - ANSWER-Unable to continue without even occurring, eg./ I/O.
Process state terminated - ANSWER-Has been killed off by "exit".
CPU scheduler - ANSWER-Invoked every couple of milliseconds, this is short term.
Job scheduler - ANSWER-Invoked every couple of seconds or minutes, decides which
processes to be brought into the ready queue.
Three queues: - ANSWER-Job (all PCBs in the system).
Ready (All processes in the main memory and waiting to execute).
Device (All processes waiting for an I/O device).
Thrashing - ANSWER-When the CPU spends more time swapping context than getting
actual work done.