CPTR 352-TEST 2 REVIEW QUESTIONS
PCB is an acronym for what? - Answer -Process Control Block
(T/F)The PCB is created by the process when execution starts. - Answer -False
(T/F)The PCB becomes part of the program being executed by a process. - Answer -
False
(T/F)Two processes can be executing the same program. - Answer -True
A context ______ is the transfer of control from one process to another. - Answer -
switch
The CPU _____ is the information that needs to be saved when transferring from one
process to another. - Answer -state
Which of the following can cause a transfer from a currently running process (p) to
another process? - Answer -the os
the process (p) itself
Which of the following series of state transitions is valid? - Answer -new->ready-
>suspended->blocked->suspended
Indicate which PCB fields may change while a process is in the running state. - Answer
-open_files
children
(T/F)The initial CPU state of a newly created process is NULL or undefined. - Answer -
False
(T/F)When a new process p is created, the scheduler could select p to run next. -
Answer -True
(T/F)The responsibility to close all files should rest with the programmer, not the destroy
function. - Answer -False
RCB is an acronym for what? - Answer -Resource Control Block
(T/F)A RCB waiting list can be implemented as a linked list where each element points
to a PCB. - Answer -True
(T/F)A process can be blocked on more than one resource. - Answer -False
, (T/F) A request can be initiated by any process, regardless of the process's current
state. - Answer -False
Which function is called at the end of each of the process and resource management
functions: create, destroy, request, release. - Answer -scheduler, scheduler function,
the scheduler function
A ______ is an instance of executing a portion of a program within a process without
incurring the overhead of creating and managing separate PCB's. - Answer -thread
TCB is an acronym for what? - Answer -Thread Control Block
(T/F)A virtual CPU can allow a program to run a program not supported by the
hardware. - Answer -True
Match the type of scheduling with the description.
1. Long-term scheduling
2. Short-term scheduling - Answer -1. A process entering the RL from the suspended
list is subject to what?
1. Decides when a process should enter the ready state and start competing for the
CPU.
1. A process entering the RL from a list of new processes is subject to what?
2. Decides which of the ready processes should run next on the CPU.
2. A process entering the RL from the waiting list is subject to what?
2. A process entering the RL from the CPU is subject to what?
Match the scheduling algorithm type with the action.
1. Preemptive
2. Non-preemptive
3. Both - Answer -3. Makes a scheduling decision whenever a process terminates.
1. Makes a scheduling decision whenever a process changes from the blocked state to
the ready state.
3. Makes a scheduling decision whenever a process requests an unavailable resource.
1. Makes a scheduling decision whenever a new process arrives in the RL.
PCB is an acronym for what? - Answer -Process Control Block
(T/F)The PCB is created by the process when execution starts. - Answer -False
(T/F)The PCB becomes part of the program being executed by a process. - Answer -
False
(T/F)Two processes can be executing the same program. - Answer -True
A context ______ is the transfer of control from one process to another. - Answer -
switch
The CPU _____ is the information that needs to be saved when transferring from one
process to another. - Answer -state
Which of the following can cause a transfer from a currently running process (p) to
another process? - Answer -the os
the process (p) itself
Which of the following series of state transitions is valid? - Answer -new->ready-
>suspended->blocked->suspended
Indicate which PCB fields may change while a process is in the running state. - Answer
-open_files
children
(T/F)The initial CPU state of a newly created process is NULL or undefined. - Answer -
False
(T/F)When a new process p is created, the scheduler could select p to run next. -
Answer -True
(T/F)The responsibility to close all files should rest with the programmer, not the destroy
function. - Answer -False
RCB is an acronym for what? - Answer -Resource Control Block
(T/F)A RCB waiting list can be implemented as a linked list where each element points
to a PCB. - Answer -True
(T/F)A process can be blocked on more than one resource. - Answer -False
, (T/F) A request can be initiated by any process, regardless of the process's current
state. - Answer -False
Which function is called at the end of each of the process and resource management
functions: create, destroy, request, release. - Answer -scheduler, scheduler function,
the scheduler function
A ______ is an instance of executing a portion of a program within a process without
incurring the overhead of creating and managing separate PCB's. - Answer -thread
TCB is an acronym for what? - Answer -Thread Control Block
(T/F)A virtual CPU can allow a program to run a program not supported by the
hardware. - Answer -True
Match the type of scheduling with the description.
1. Long-term scheduling
2. Short-term scheduling - Answer -1. A process entering the RL from the suspended
list is subject to what?
1. Decides when a process should enter the ready state and start competing for the
CPU.
1. A process entering the RL from a list of new processes is subject to what?
2. Decides which of the ready processes should run next on the CPU.
2. A process entering the RL from the waiting list is subject to what?
2. A process entering the RL from the CPU is subject to what?
Match the scheduling algorithm type with the action.
1. Preemptive
2. Non-preemptive
3. Both - Answer -3. Makes a scheduling decision whenever a process terminates.
1. Makes a scheduling decision whenever a process changes from the blocked state to
the ready state.
3. Makes a scheduling decision whenever a process requests an unavailable resource.
1. Makes a scheduling decision whenever a new process arrives in the RL.