CSCE 3600 MIDTERM 2 QUESTIONS & ANSWERS
What is a process? - Answers - The active implementation of an otherwise passive
program.
Within the process context (also known as user context), there are four components: -
Answers - Text, data, stack, heap.
Within the register context, the components are: - Answers - General purpose registers,
stack pointer, program counter, etc..
PID 0 - Answers - Swapper/sched, used for memory management.
PID 1 - Answers - Init, continually running in the background and used to
startup/shutdown the system.
Process state created - Answers - Also known as "new".
Process state waiting - Answers - Also known as "ready", when process is scheduled
for execution. Can transition to running via scheduler dispatch.
Process state running - Answers - Actively executing instructions on the CPU.
Process state blocked - Answers - Unable to continue without even occurring, eg./ I/O.
Process state terminated - Answers - Has been killed off by "exit".
CPU scheduler - Answers - Invoked every couple of milliseconds, this is short term.
Job scheduler - Answers - Invoked every couple of seconds or minutes, decides which
processes to be brought into the ready queue.
Three queues: - Answers - 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 - Answers - When the CPU spends more time swapping context than getting
actual work done.
Context switches - Answers - Yield and overhead of 1 us and are swapping an old PCB
for a new one.
What is a process? - Answers - The active implementation of an otherwise passive
program.
Within the process context (also known as user context), there are four components: -
Answers - Text, data, stack, heap.
Within the register context, the components are: - Answers - General purpose registers,
stack pointer, program counter, etc..
PID 0 - Answers - Swapper/sched, used for memory management.
PID 1 - Answers - Init, continually running in the background and used to
startup/shutdown the system.
Process state created - Answers - Also known as "new".
Process state waiting - Answers - Also known as "ready", when process is scheduled
for execution. Can transition to running via scheduler dispatch.
Process state running - Answers - Actively executing instructions on the CPU.
Process state blocked - Answers - Unable to continue without even occurring, eg./ I/O.
Process state terminated - Answers - Has been killed off by "exit".
CPU scheduler - Answers - Invoked every couple of milliseconds, this is short term.
Job scheduler - Answers - Invoked every couple of seconds or minutes, decides which
processes to be brought into the ready queue.
Three queues: - Answers - 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 - Answers - When the CPU spends more time swapping context than getting
actual work done.
Context switches - Answers - Yield and overhead of 1 us and are swapping an old PCB
for a new one.