Process States and Lifecycle
- 32Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the main purpose of the process-state model described in the content?
What is the main purpose of the process-state model described in the content?
32 questions
- 1
What is the main purpose of the process-state model described in the content?
- A
To show the exact internal data structures every operating system must use
- B
To explain the statuses a process may pass through from creation to completion
- C
To guarantee that all processes execute in the same sequence
- D
To define how source code is translated into machine instructions
Correct answer
BTo explain the statuses a process may pass through from creation to completion
Explanation
The process-state model is presented as a way to understand how a process changes status from its beginning to its end; it is an explanatory model rather than a claim about a single exact implementation.
- A
- 2
Which set contains the primary process states identified in the content?
- A
Created, admitted, dispatched, paged, and completed
- B
Ready, compiling, running, interrupting, and terminated
- C
New, suspended, swapping, executing, and archived
- D
New, ready, running, waiting or blocked, and terminated
Correct answer
DNew, ready, running, waiting or blocked, and terminated
Explanation
The primary states named are new, ready, running, wait or block, and terminated. Suspended states are presented as additional states.
- A
- 3
A program has been created but has not yet been activated for execution. Which state best matches the content's description?
- A
Blocked
- B
Ready
- C
Running
- D
New
Correct answer
DNew
Explanation
The new state represents a process that has been created but has not yet been brought into the active ready state for execution.
- A
- 4
What does it mean for a process to be in the ready state?
- A
It is waiting for an I/O operation while unable to proceed
- B
It is in main memory and waiting for an opportunity to use the CPU
- C
It has completed execution and released its resources
- D
It is currently executing instructions on the CPU
Correct answer
BIt is in main memory and waiting for an opportunity to use the CPU
Explanation
A ready process is in RAM and is eligible to run, but it is waiting to be selected for CPU execution.
- A
- 5
In the assumed uniprocessor system, how many processes can be in the running state at the same time?
- A
One, because the system has one CPU
- B
Two, because each process uses a separate memory area
- C
As many as fit in the ready queue
- D
None, because execution occurs only in the ready state
Correct answer
AOne, because the system has one CPU
Explanation
The content assumes a uniprocessor system, so only one process can use its single CPU at a time. A multiprocessor system may execute multiple processes in parallel.
- A
- 6
What normally happens when a process finishes execution?
- A
It enters the ready state and waits for another CPU time slice
- B
It enters the blocked state until its final I/O request completes
- C
It enters the terminated state, and its allocated resources are reclaimed
- D
It is swapped to secondary memory for later continuation
Correct answer
CIt enters the terminated state, and its allocated resources are reclaimed
Explanation
Termination marks the process as finished. The resources and memory addresses allocated to it can then be deallocated and reclaimed.
- A
- 7
Why does the content say that only some processes can be brought into the ready state at once?
- A
The CPU can store only one process in the ready queue at a time
- B
Processes in secondary storage are always terminated and cannot be admitted
- C
The operating system permits only one process to exist at a time
- D
Main memory is limited, so it cannot hold every process waiting in secondary storage
Correct answer
DMain memory is limited, so it cannot hold every process waiting in secondary storage
Explanation
The content contrasts the comparatively large capacity of secondary storage with limited RAM, so only some processes can be resident and ready at once.
- A
- 8
What is the role of the long-term scheduler in the described process lifecycle?
- A
It selects processes to bring into the ready state
- B
It moves a running process to blocked when it requests I/O
- C
It releases resources when a process terminates
- D
It selects a ready process and dispatches it to the CPU
Correct answer
AIt selects processes to bring into the ready state
Explanation
The long-term scheduler admits processes into the ready state from the pool of processes that are not yet in RAM.
- A
- 9
Which scheduler is responsible for selecting a process from the ready state and sending it to the running state?
- A
Short-term scheduler
- B
Medium-term scheduler
- C
I/O scheduler
- D
Long-term scheduler
Correct answer
AShort-term scheduler
Explanation
The short-term scheduler chooses a process from the ready queue and dispatches it to the CPU for execution.
- A
- 10
What is the principal role of the medium-term scheduler in the content?
- A
To choose the next ready process for immediate CPU execution
- B
To swap processes out of RAM and later allow them to return
- C
To create a process when its program is first written
- D
To perform the I/O operation requested by a running process
Correct answer
BTo swap processes out of RAM and later allow them to return
Explanation
The medium-term scheduler manages suspension and resumption by swapping processes between main memory and secondary storage, helping manage memory pressure.
- A
- 11
A system admits more processes into RAM so that several are available for execution. Which idea does this illustrate?
- A
Process termination
- B
Multiprogramming
- C
Non-preemptive scheduling
- D
Backing storage
Correct answer
BMultiprogramming
Explanation
The content describes multiprogramming as bringing multiple processes into the ready state so that the system has processes available to run.
- A
- 12
In a uniprocessor system, what does dispatching a ready process mean?
- A
Selecting it for CPU execution and changing its state to running
- B
Moving it to secondary memory until its I/O finishes
- C
Copying it from the CPU into the ready queue
- D
Releasing its memory and marking it as terminated
Correct answer
ASelecting it for CPU execution and changing its state to running
Explanation
Dispatching means the short-term scheduler selects a ready process and gives it the CPU, moving it into the running state.
- A
- 13
A running process is interrupted because a higher-priority process needs the CPU. What happens to the interrupted process in the described example?
- A
It terminates and releases all its resources
- B
It moves directly to the blocked state without requesting I/O
- C
It remains running while the higher-priority process executes
- D
It returns to the ready state to await another turn
Correct answer
DIt returns to the ready state to await another turn
Explanation
When a higher-priority process takes the CPU, the previously running process is sent back to the ready queue so it can be scheduled again later.
- A
- 14
In round-robin scheduling, what is a time quantum?
- A
The duration a process must remain blocked after requesting I/O
- B
The total time allowed for a process to exist in the system
- C
A fixed interval for which a process may use the CPU before being reconsidered
- D
The amount of secondary storage assigned to a process
Correct answer
CA fixed interval for which a process may use the CPU before being reconsidered
Explanation
A time quantum is the fixed CPU time allotted to a process in a round-robin turn. If it has not finished when the interval expires, it returns to the ready queue.
- A
- 15
A process has not finished when its round-robin time quantum expires. What does the content say happens next?
- A
It is moved to the blocked state until its next time quantum
- B
It continues running until it voluntarily gives up the CPU
- C
It is terminated because its allotted CPU time has ended
- D
It is returned to the ready state, and another process can run
Correct answer
DIt is returned to the ready state, and another process can run
Explanation
When the quantum expires before completion, the process is preempted and placed back in the ready queue to await a later turn.
- A
- 16
Which situation is an example of non-preemptive execution as described in the content?
- A
A process keeps the CPU until it finishes, without being interrupted by priority or quantum expiry
- B
A process is moved to the ready queue whenever its time quantum expires
- C
A process gives up the CPU to wait for a requested I/O operation
- D
A process is stopped whenever a higher-priority process becomes ready
Correct answer
AA process keeps the CPU until it finishes, without being interrupted by priority or quantum expiry
Explanation
The content characterizes non-preemptive execution as allowing a process to run to completion without being stopped in the middle by priority or time-quantum rules.
- A
- 17
Which situation makes CPU scheduling preemptive according to the content?
- A
A running process is stopped before completion because of higher priority or quantum expiry
- B
A new process remains in secondary storage before admission
- C
A running process finishes all its instructions before leaving the CPU
- D
A process waits for an I/O operation and later becomes ready
Correct answer
AA running process is stopped before completion because of higher priority or quantum expiry
Explanation
Scheduling is preemptive when a running process can be interrupted before completion, such as when a higher-priority process arrives or its time quantum expires.
- A
- 18
A running process asks to read a file from secondary storage. Which state transition best matches the content?
- A
Running to terminated
- B
Running to new
- C
Running to ready, with no waiting state involved
- D
Running to waiting or blocked
Correct answer
DRunning to waiting or blocked
Explanation
A process that must wait for a slow I/O operation cannot continue using the CPU, so it is moved to the waiting or blocked state.
- A
- 19
Why is a process generally moved to the waiting or blocked state while an I/O request is being completed?
- A
The I/O operation may take longer than CPU work, so the CPU can run another process
- B
The process has finished all its instructions and should release its resources
- C
The process must be moved out of RAM whenever it requests any I/O
- D
The CPU cannot execute any other process while an I/O operation is underway
Correct answer
AThe I/O operation may take longer than CPU work, so the CPU can run another process
Explanation
I/O, such as reading from secondary storage, is slow relative to CPU execution. Blocking the requesting process allows the CPU to work on another process instead of waiting idly.
- A
- 20
What is the usual next state for a process after its I/O operation completes?
- A
New
- B
Ready
- C
Terminated
- D
Running immediately, regardless of other processes
Correct answer
BReady
Explanation
Once its I/O request is complete, the process returns to the ready queue. It must wait for the scheduler to give it another CPU turn.
- A
- 21
Why does completing an I/O request not necessarily send a process directly to the running state?
- A
The CPU is reserved for I/O operations until the process is swapped out
- B
The process must first be recreated in the new state
- C
Another process may already be running, so the returning process must wait in the ready queue
- D
I/O completion always terminates the process
Correct answer
CAnother process may already be running, so the returning process must wait in the ready queue
Explanation
The CPU may be executing another process when the I/O finishes. The completed process therefore joins the ready queue and waits for its turn.
- A
- 22
What is the purpose of a suspended-waiting (suspended-blocked) state in the described model?
- A
To hold a newly created process before it is written to secondary storage
- B
To hold a waiting process that has been swapped out because memory is under pressure
- C
To mark a process that has completed execution but still owns its resources
- D
To represent a process that is executing on the CPU while waiting for I/O
Correct answer
BTo hold a waiting process that has been swapped out because memory is under pressure
Explanation
If the waiting queue or available RAM becomes constrained, a waiting process may be suspended and swapped out to secondary storage until it can return.
- A
- 23
What does swapping out a process mean in this content?
- A
Releasing all of its resources because it has terminated
- B
Copying its I/O request into the running process
- C
Moving it from the ready queue directly onto the CPU
- D
Moving it from RAM to secondary storage temporarily
Correct answer
DMoving it from RAM to secondary storage temporarily
Explanation
Swapping out means moving a process from main memory to secondary storage for a time, freeing RAM for other processes.
- A
- 24
If a suspended-waiting process's I/O completes but the ready queue has no available space, what can happen in the described model?
- A
It returns to the new state and begins its lifecycle again
- B
It can be placed in the suspended-ready state until it can return to the ready state
- C
It is necessarily terminated because the I/O has completed
- D
It must immediately run on the CPU without entering the ready state
Correct answer
BIt can be placed in the suspended-ready state until it can return to the ready state
Explanation
The process cannot move directly to running; it normally needs to enter the ready queue. If that queue is full, it can remain suspended in the suspended-ready state until there is space.
- A
- 25
What distinguishes suspended-ready from suspended-waiting in the described process model?
- A
A suspended-ready process is awaiting admission to the ready queue, while a suspended-waiting process is awaiting I/O completion
- B
A suspended-ready process is awaiting I/O, while a suspended-waiting process is ready for CPU dispatch
- C
A suspended-ready process is in RAM, while a suspended-waiting process is executing on the CPU
- D
A suspended-ready process has terminated, while a suspended-waiting process is running
Correct answer
AA suspended-ready process is awaiting admission to the ready queue, while a suspended-waiting process is awaiting I/O completion
Explanation
Suspended-ready processes have been taken out of the ready queue, often because it is full. Suspended-waiting processes have been taken out of the waiting queue while their I/O-related wait is unresolved.
- A
- 26
Why might a process in the ready state be moved to the suspended-ready state?
- A
The process requested I/O and must wait for the operation to complete
- B
The process has finished and its resources must be reclaimed
- C
The ready queue is full, or space is needed to admit a higher-priority process
- D
The process's time quantum expired, so it must leave memory permanently
Correct answer
CThe ready queue is full, or space is needed to admit a higher-priority process
Explanation
The content describes suspending a ready process when the ready queue is full or when space is needed for a high-priority process. It may later be resumed into the ready state.
- A
- 27
What does resuming a suspended process generally involve in the model?
- A
Marking it terminated once its data has been stored
- B
Sending it directly to the CPU without any scheduling
- C
Bringing it back from secondary storage into the appropriate in-memory state when space is available
- D
Restarting it as a new process and discarding its prior progress
Correct answer
CBringing it back from secondary storage into the appropriate in-memory state when space is available
Explanation
A suspended process can be resumed by bringing it back into RAM when space permits. It returns to the appropriate state, such as waiting or ready, rather than automatically jumping to the CPU.
- A
- 28
Why can the waiting queue itself lead to a process being suspended?
- A
The waiting queue uses memory, and limited RAM may not accommodate all waiting processes
- B
Waiting processes execute simultaneously and therefore exhaust the CPU
- C
The ready queue cannot contain processes that have completed I/O
- D
An I/O request automatically turns every waiting process into a terminated one
Correct answer
AThe waiting queue uses memory, and limited RAM may not accommodate all waiting processes
Explanation
The content treats the waiting queue as occupying RAM. If memory is constrained and many processes are waiting for I/O, some may be swapped out to secondary storage.
- A
- 29
What does the content say about the policy used to choose processes for swapping out?
- A
Every process must be swapped out in the order it entered the system
- B
Only terminated processes can be selected for swapping
- C
The short-term scheduler must always choose the process that arrived most recently
- D
The medium-term scheduler may use different selection logic, such as frequency- or priority-based criteria
Correct answer
DThe medium-term scheduler may use different selection logic, such as frequency- or priority-based criteria
Explanation
The content says the medium-term scheduler may use different logic to select processes for swapping, mentioning frequency- and priority-based approaches as possibilities rather than requiring one universal rule.
- A
- 30
Which tool is identified for viewing process information on Windows?
- A
Task Manager
- B
A round-robin scheduler
- C
The backing store
- D
The
pscommand
Correct answer
ATask Manager
Explanation
The content identifies Windows Task Manager's process tab as a place to view a list of system and user processes.
- A
- 31
Which command is identified for obtaining process information on Unix or Linux systems?
- A
swap - B
quantum - C
dispatch - D
ps
Correct answer
DpsExplanation
The content identifies the
pscommand, including variations such asps -eandps -u, as a way to inspect processes on Unix or Linux. - A
- 32
Which information does the content say can generally be obtained using the
pscommand?- A
The source code of every process and its future completion time
- B
The total RAM capacity and the physical location of each file
- C
A process ID, the command being executed, and information about its CPU-running time
- D
The time quantum and priority policy used by every operating system
Correct answer
CA process ID, the command being executed, and information about its CPU-running time
Explanation
The content says
pscan show information such as a process ID, the command it is executing, and how long it has been running on the CPU. - A

Ask anything
We've read this whole study set, so questions about it get the best answers.