🎓 BookMCQ
← Back to 6. CPU Scheduling

📝 CPU Scheduling Basic Concepts (54 MCQs)

📖 From Operating System • 6. CPU Scheduling • 54 questions available

What is CPU Scheduling Basic Concepts?

Definition:
CPU scheduling is the process of selecting a waiting process from the ready queue and allocating the CPU to it, ensuring efficient utilization where the scheduler chooses process PiP_i at time tt.

Example:
When Process A completes an I/O burst and enters the ready state while Process B is running, the short-term scheduler selects Process A to execute next based on the scheduling policy.

Reason:
This mechanism maximizes CPU utilization and throughput by ensuring the processor is never idle when there are processes ready to execute, thereby improving overall system performance.

18
Easy
27
Medium
9
Hard

📝 All CPU Scheduling Basic Concepts MCQs

Q1. What is the fundamental limitation of a single-processor system regarding process execution?

A.Multiple processes can execute simultaneously
B.Only one process can run at any given time ✅
C.Processes execute in parallel
D.The CPU can handle unlimited processes
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: A single-processor system can execute only one process at a time. All other processes must wait until the CPU becomes available and can be rescheduled. This fundamental constraint forms the basis for CPU scheduling decisions in operating systems.

Q2. What is the primary objective of multiprogramming?

A.To minimize memory usage
B.To maximize CPU utilization by keeping some process running at all times ✅
C.To reduce the number of processes in memory
D.To eliminate all I/O operations
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Multiprogramming aims to maximize CPU utilization by ensuring that some process is always running. When one process waits for I/O, the operating system switches to another process, preventing the CPU from sitting idle and wasting valuable processing time.

Q3. What happens to a process when it needs to wait for I/O completion in a multiprogramming system?

A.The process continues execution
B.The CPU is taken away from the process and given to another ✅
C.The process is terminated
D.The CPU enters sleep mode
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: When a process requires I/O, the operating system takes the CPU away from that process and schedules another ready process. This prevents CPU idle time and allows productive use of the processor while the first process waits for I/O completion.

Q4. What does the CPU-I/O burst cycle represent?

A.The time between system reboots
B.The alternating sequence of CPU execution and I/O waiting periods ✅
C.The total time a process spends in memory
D.The time required to load a program
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: The CPU-I/O burst cycle describes the repeating pattern where a process alternates between executing CPU instructions (CPU burst) and waiting for I/O operations to complete (I/O burst). This cycle continues throughout the process lifetime.

Q5. What is a CPU burst?

A.A period when the CPU executes instructions of a process ✅
B.A period when the process waits for I/O
C.The time taken to load a process into memory
D.The time taken to save process state
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: A CPU burst is a period during which a process executes instructions on the CPU. During this time, the process actively uses the processor to perform computations and logical operations before it may need to wait for I/O operations.

Q6. What is an I/O burst?

A.A period of CPU execution
B.A period when a process waits for input/output operations to complete ✅
C.The time taken for context switching
D.The time taken for process creation
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: An I/O burst is a period during which a process waits for input/output operations to complete. During this time, the process cannot execute on the CPU, allowing the operating system to schedule another process to utilize the CPU productively.

Q7. In the CPU-I/O burst cycle, what happens after a CPU burst completes?

A.The process terminates
B.The process may initiate an I/O request and enter an I/O burst ✅
C.The process duplicates itself
D.The process moves to the background
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: After completing a CPU burst, a process typically initiates an I/O operation and enters an I/O burst phase. During this waiting period, the process cannot execute further instructions until the I/O operation completes, after which it may resume with another CPU burst.

Q8. Why is CPU scheduling considered a fundamental operating-system function?

A.Because it manages file systems
B.Because the CPU is a primary computer resource and must be scheduled before use ✅
C.Because it handles network communications
D.Because it manages user accounts
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: CPU scheduling is fundamental because the CPU is one of the primary computer resources. Since all computer resources are scheduled before use, proper CPU scheduling ensures efficient system operation, high utilization, and fair distribution of processing time among competing processes.

Q9. What happens to the CPU in a simple computer system when a process waits for I/O without multiprogramming?

A.The CPU continues executing other instructions
B.The CPU sits idle and waste time ✅
C.The CPU shuts down
D.The CPU performs background tasks
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: In a simple system without multiprogramming, when a process waits for I/O, the CPU sits idle. This time is wasted with no useful work accomplished. Multiprogramming addresses this problem by using the waiting time productively by running other processes.

Q10. What is the purpose of keeping several processes in memory at one time in a multiprogramming system?

A.To increase memory utilization
B.To allow the OS to switch to another process when one waits ✅
C.To reduce the need for secondary storage
D.To speed up process startup time
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Keeping multiple processes in memory simultaneously enables the operating system to switch to another ready process when the current process must wait for I/O. This approach prevents CPU idle time and improves overall system throughput through better CPU utilization.

Q11. What occurs during a context switch when a process must wait for I/O?

A.The process is terminated
B.The OS saves the current process state and loads another process ✅
C.The process continues in background
D.The CPU frequency is reduced
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: During a context switch, the operating system saves the state of the current process (registers, program counter, etc.), selects another ready process from the ready queue, and loads its saved state. This allows the CPU to execute a different process while the first process waits for I/O.

Q12. How does multiprogramming improve CPU utilization compared to a simple batch system?

A.By executing multiple processes in parallel on different cores
B.By switching to another process when the current process must wait for I/O ✅
C.By prioritizing CPU-bound processes over I/O-bound processes
D.By reducing the number of I/O operations
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Multiprogramming improves CPU utilization by enabling the operating system to switch to another ready process whenever the currently executing process needs to wait for I/O. This prevents the CPU from remaining idle during I/O operations, allowing productive execution of other processes in the meantime.

Q13. Why can't a process continue execution during an I/O burst?

A.The process has been terminated
B.The process is waiting for I/O operation completion and cannot proceed ✅
C.The CPU is too slow
D.The process has reached its time quantum limit
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: During an I/O burst, the process has issued an I/O request and must wait for the operation to complete before it can execute further instructions. The process cannot proceed with CPU execution because it depends on data from the I/O operation that is not yet available.

Q14. What is the relationship between CPU bursts and I/O bursts in a typical process execution?

A.They occur randomly with no pattern
B.They alternate sequentially throughout process execution ✅
C.CPU bursts occur only once
D.I/O bursts occur only once
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: CPU bursts and I/O bursts alternate sequentially throughout a process's lifetime. A process executes a CPU burst, then may issue an I/O request causing an I/O burst, followed by another CPU burst, and this pattern continues until the process completes or terminates.

Q15. How does the operating system determine which process to run next when the current process waits for I/O?

A.It randomly selects any process
B.It uses a scheduling algorithm to select from ready processes ✅
C.It always selects the oldest process
D.It selects the process with the largest memory
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The operating system uses a CPU scheduling algorithm to determine which process from the ready queue should be selected for execution next. The specific algorithm (such as FCFS, SJF, or Round-Robin) implements criteria that guide this selection process based on system objectives.

Q16. What is the significance of the alternating CPU-I/O burst pattern for scheduling decisions?

A.It indicates process termination
B.It determines when scheduling decisions can be made ✅
C.It determines process priority levels
D.It indicates memory requirements
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The alternating CPU-I/O burst pattern creates natural scheduling points whenever a process completes a CPU burst and requires I/O. At these points, the CPU becomes available, allowing the scheduler to decide which ready process should be executed next based on system scheduling policies.

Q17. What is the role of the scheduler when multiple processes are in memory?

A.To allocate memory to processes
B.To select which ready process should use the CPU next ✅
C.To manage file access permissions
D.To handle network connections
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: When multiple processes reside in memory, the scheduler's role is to select which process from the ready state should be allocated the CPU for execution. This selection decision is based on the scheduling algorithm and aims to meet system performance objectives such as fairness, responsiveness, or throughput.

Q18. How does the CPU-I/O burst cycle affect overall system performance?

A.It has no effect on performance
B.It creates opportunities for scheduling but also requires overhead for context switching ✅
C.It eliminates all scheduling overhead
D.It makes scheduling unnecessary
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The CPU-I/O burst cycle creates opportunities for CPU scheduling when processes wait for I/O, improving CPU utilization. However, it also introduces context switching overhead when switching between processes. The scheduling algorithm must balance these factors to optimize overall system performance.

Q19. What distinguishes a CPU-bound process from an I/O-bound process in the context of CPU-I/O bursts?

A.CPU-bound processes have longer CPU bursts and shorter I/O bursts ✅
B.CPU-bound processes have shorter CPU bursts
C.I/O-bound processes have no CPU bursts
D.CPU-bound processes never perform I/O
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: CPU-bound processes typically have long CPU bursts and short I/O bursts, meaning they primarily perform computations. I/O-bound processes have short CPU bursts and long I/O bursts, meaning they frequently perform I/O operations. Understanding this distinction helps in designing scheduling algorithms that appropriately balance these process types.

Q20. What problem does multiprogramming solve regarding CPU utilization?

A.It solves memory fragmentation
B.It solves the problem of CPU idle time during I/O waits ✅
C.It solves disk space allocation
D.It solves network congestion
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Multiprogramming directly addresses the problem of CPU idle time that occurs when a process waits for I/O operations. By keeping multiple processes in memory and switching to another ready process during I/O waits, the CPU remains busy, significantly improving CPU utilization compared to systems without multiprogramming.

Q21. In the CPU-I/O burst cycle, what determines the duration of a CPU burst?

A.The process's computational requirements and system conditions ✅
B.A fixed time quantum set by the operating system
C.The size of the process's memory allocation
D.The number of I/O devices available
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The duration of a CPU burst depends on the specific computational requirements of the process and various system conditions. Some processes have short CPU bursts while others have long bursts, and this variation affects scheduling decisions and system performance analysis.

Q22. What is the relationship between the number of processes in memory and CPU utilization in multiprogramming?

A.More processes always decrease CPU utilization
B.More processes generally increase CPU utilization until overhead dominates ✅
C.Process count has no effect on CPU utilization
D.More processes always increase CPU utilization
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Increasing the number of processes in memory generally improves CPU utilization by providing more ready processes to execute during I/O waits. However, beyond a certain point, the overhead of context switching and scheduling may begin to reduce effective utilization, creating a trade-off between degree of multiprogramming and system performance.

Q23. What is the significance of load, store, add, and index instructions in the context of CPU bursts?

A.They are examples of I/O operations
B.They are examples of CPU instructions executed during a CPU burst ✅
C.They are file system operations
D.They are network operations
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Instructions like load, store, add, and index are typical CPU instructions that are executed during a CPU burst. These operations involve the CPU performing computational tasks using registers and memory, and they represent the productive work done by the CPU during the execution phase of a process.

Q24. What is the primary function of the CPU scheduler in an operating system?

A.To manage memory allocation
B.To select processes from the ready queue for CPU execution ✅
C.To handle file I/O operations
D.To manage network connections
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: The CPU scheduler's primary function is to select processes from the ready queue and allocate the CPU to them for execution. This selection decision implements the system's scheduling policy and directly affects performance metrics such as throughput, response time, and CPU utilization.

Q25. How does a process typically transition from a CPU burst to an I/O burst?

A.By terminating itself
B.By issuing an I/O request ✅
C.By increasing its priority
D.By decreasing its memory requirements
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: A process transitions from a CPU burst to an I/O burst by issuing an I/O request, such as reading from a file or writing to a device. This request causes the process to enter a waiting state while the I/O operation is performed by the appropriate device controller.

Q26. What happens to the CPU when a process transitions from CPU burst to I/O burst in a multiprogramming system?

A.The CPU continues executing the same process
B.The CPU is reassigned to another ready process ✅
C.The CPU enters an idle state
D.The CPU frequency decreases
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: When a process transitions from a CPU burst to an I/O burst, the CPU becomes available. In a multiprogramming system, the operating system reassigns the CPU to another ready process from the ready queue, ensuring the CPU continues productive work instead of sitting idle during the I/O operation.

Q27. Why is it important to keep multiple processes in memory simultaneously?

A.To reduce memory fragmentation
B.To provide ready processes for the CPU when the current process waits ✅
C.To increase disk space utilization
D.To reduce power consumption
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Keeping multiple processes in memory simultaneously is essential for multiprogramming because it ensures there is always a ready process available to run when the currently executing process must wait for I/O. Without multiple processes in memory, the CPU would have to remain idle during I/O waits, significantly reducing utilization.

Q28. What is the relationship between the degree of multiprogramming and context switching overhead?

A.Higher multiprogramming reduces context switching overhead
B.Higher multiprogramming increases context switching overhead due to more frequent switches ✅
C.There is no relationship between multiprogramming and context switching
D.Higher multiprogramming eliminates context switching
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: As the degree of multiprogramming increases, the CPU may switch between processes more frequently, leading to increased context switching overhead. Each context switch requires saving and restoring process states, consuming CPU time that could otherwise be used for productive work. This creates a trade-off between improved utilization and scheduling overhead.

Q29. What does the term 'I/O wait' refer to in the context of process execution?

A.A period when the process is executing CPU instructions
B.A period when the process is waiting for an I/O operation to complete ✅
C.A period when the process is being loaded into memory
D.A period when the process is being terminated
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: I/O wait refers to the period during which a process has issued an I/O request and is waiting for the operation to complete. During this time, the process cannot execute further instructions and must remain in a waiting state until the I/O operation is finished by the appropriate device.

Q30. What is the typical sequence of events in the CPU-I/O burst cycle?

A.I/O burst → CPU burst → CPU burst → I/O burst
B.CPU burst → I/O burst → CPU burst → I/O burst ✅
C.CPU burst → CPU burst → I/O burst → I/O burst
D.I/O burst → I/O burst → CPU burst → CPU burst
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The typical sequence alternates between CPU bursts and I/O bursts: a CPU burst of instruction execution, followed by an I/O burst for I/O operation, followed by another CPU burst, and so on. This alternating pattern continues until the process terminates, with scheduling opportunities occurring at each transition.

Q31. What happens to processes that are in the ready state?

A.They are currently executing on the CPU
B.They are waiting for I/O completion
C.They are loaded into memory and ready to execute when scheduled ✅
D.They have been terminated
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: Processes in the ready state are loaded into memory and are prepared to execute. They are not currently running on the CPU but are available for execution. The scheduler selects processes from this ready state to run on the CPU according to the scheduling algorithm being used.

Q32. What is the role of the operating system when a process makes an I/O request?

A.To terminate the process
B.To switch the CPU to another ready process ✅
C.To ignore the request
D.To increase the process's priority
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: When a process makes an I/O request, the operating system manages the transition: it initiates the I/O operation, marks the process as waiting, and selects another ready process from the ready queue to execute on the CPU. This prevents CPU idle time during the I/O operation and maintains system productivity.

Q33. Why is scheduling required for CPU resources?

A.Because CPUs are too slow
B.Because multiple processes compete for the CPU and it must be allocated fairly and efficiently ✅
C.Because processes refuse to share
D.Because CPUs have limited memory
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Scheduling is required for CPU resources because multiple processes compete for CPU time and the resource must be allocated among them. The scheduling algorithm determines how the CPU is allocated, balancing competing goals such as fairness, efficiency, responsiveness, and throughput to meet system design objectives.

Q34. How are scheduling decisions related to resource management in operating systems?

A.Scheduling is independent of resource management
B.All computer resources are scheduled before use, and the CPU is a primary resource ✅
C.Scheduling only applies to memory
D.Scheduling applies only to I/O devices
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: All computer resources in an operating system are scheduled before use, and the CPU is one of the primary resources. Scheduling decisions for the CPU are therefore central to resource management, with CPU scheduling algorithms determining how this critical resource is allocated among competing processes to achieve system objectives.

Q35. What type of process typically has longer CPU bursts and shorter I/O bursts?

A.I/O-bound processes
B.CPU-bound processes ✅
C.Interactive processes
D.Real-time processes
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: CPU-bound processes are characterized by longer CPU bursts and shorter I/O bursts. These processes spend most of their time performing computations rather than I/O operations. Examples include scientific computations, image processing, and data analysis applications that require significant CPU processing.

Q36. What type of process typically has shorter CPU bursts and longer I/O bursts?

A.I/O-bound processes ✅
B.CPU-bound processes
C.Compute-intensive processes
D.Batch processes
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: I/O-bound processes are characterized by shorter CPU bursts and longer I/O bursts. These processes frequently require I/O operations and spend more time waiting for I/O than executing CPU instructions. Examples include user interactive applications, database queries, and web servers that frequently access storage or network resources.

Q37. How does the scheduling of CPU differ from scheduling of other computer resources?

A.CPU scheduling is more complex because of frequent context switches ✅
B.CPU scheduling is simpler than other resource scheduling
C.There is no difference
D.CPU scheduling only occurs at system startup
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: CPU scheduling differs from scheduling other resources because of the frequency of CPU allocation decisions and the context switching overhead involved. The CPU is allocated and deallocated many times per second, requiring efficient scheduling algorithms and low-overhead context switching mechanisms to maintain system performance.

Q38. What is the relationship between the CPU-I/O burst cycle and the concept of process state transitions?

A.Process state transitions occur exactly at CPU-I/O burst boundaries ✅
B.Process states are unrelated to CPU-I/O bursts
C.State transitions happen only at process termination
D.State transitions happen randomly
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Process state transitions between running, ready, and waiting states occur at the boundaries of CPU-I/O bursts. A process moves from running to waiting when it initiates an I/O burst, and from waiting to ready when the I/O completes. It moves from ready to running when the scheduler selects it for CPU execution.

Q39. What is the effect of CPU scheduling on overall system throughput?

A.Scheduling has no effect on throughput
B.Effective scheduling can improve throughput by keeping the CPU busy ✅
C.Scheduling always decreases throughput
D.Throughput is determined only by hardware
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Effective CPU scheduling can significantly improve system throughput by minimizing CPU idle time. When a process waits for I/O, scheduling another process maintains CPU utilization, allowing more processes to complete within a given time period. Good scheduling algorithms balance this improved utilization against context switching overhead.

Q40. What is the primary benefit of keeping multiple processes in memory simultaneously?

A.It reduces memory usage
B.It allows the CPU to switch quickly to another ready process when the current process waits ✅
C.It simplifies process creation
D.It reduces context switching overhead
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The primary benefit of keeping multiple processes in memory simultaneously is that it enables quick switching to another ready process when the currently executing process must wait. This keeps the CPU busy and improves utilization. Without multiple processes in memory, the CPU would idle during I/O waits.

Q41. What are the three main process states in the context of CPU scheduling?

A.Active, Inactive, Suspended
B.Running, Ready, Waiting ✅
C.New, Old, Deleted
D.Started, Stopped, Paused
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: The three main process states in CPU scheduling are Running (currently executing on CPU), Ready (prepared to execute but waiting for CPU allocation), and Waiting (blocked waiting for an event such as I/O completion). The scheduler manages transitions between these states through scheduling decisions.

Q42. What is the relationship between CPU scheduling and the CPU-I/O burst cycle?

A.Scheduling decisions are made at CPU-I/O burst boundaries ✅
B.Scheduling decisions are independent of CPU-I/O bursts
C.Scheduling only occurs during CPU bursts
D.Scheduling only occurs during I/O bursts
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: CPU scheduling decisions are typically made at CPU-I/O burst boundaries, when a process completes a CPU burst and initiates an I/O operation. At these points, the CPU becomes available, and the scheduler selects the next process from the ready queue to execute, making efficient use of the CPU.

Q43. What is a primary consideration in CPU scheduling algorithm design?

A.Minimizing memory usage
B.Maximizing CPU utilization while maintaining fairness and responsiveness ✅
C.Maximizing the number of processes in memory
D.Minimizing I/O operations
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: CPU scheduling algorithm design must balance multiple objectives: maximizing CPU utilization to keep the processor busy, maintaining fairness to prevent starvation, ensuring responsiveness for interactive users, and providing reasonable throughput. These often conflicting goals require careful algorithm design and parameter tuning.

Q44. What is the relationship between process waiting time and CPU scheduling?

A.Scheduling determines how long a process waits before getting CPU time ✅
B.Waiting time is determined only by process behavior
C.Scheduling has no effect on waiting time
D.Waiting time is independent of the scheduler
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: CPU scheduling directly determines the waiting time of processes in the ready queue. Different scheduling algorithms result in different waiting times for processes, affecting both fairness and performance. The scheduler's choice of which process to run next determines how long each process must wait before receiving CPU service.

Q45. What is the relationship between the frequency of context switches and system performance?

A.More context switches always improve performance
B.More context switches improve CPU utilization but introduce overhead ✅
C.Context switches have no performance impact
D.Fewer context switches always improve performance
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Frequent context switches enable better CPU utilization by allowing the system to switch away from processes during I/O waits. However, each context switch carries overhead: saving and restoring process states, flushing caches, and performing scheduling calculations. The optimal frequency balances improved utilization against the performance impact of the overhead.

Q46. What happens to a process's state when it requests an I/O operation?

A.It moves from running to waiting ✅
B.It moves from ready to running
C.It remains in the running state
D.It moves from waiting to ready
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: When a process requests an I/O operation, it moves from the running state to the waiting state because it cannot continue execution until the I/O operation completes. While in the waiting state, the process is removed from the CPU, allowing the scheduler to allocate the CPU to another process from the ready queue.

Q47. What happens when an I/O operation completes for a waiting process?

A.The process moves from waiting to ready ✅
B.The process moves from waiting to running
C.The process is terminated
D.The process remains in waiting
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: When an I/O operation completes, the process moves from the waiting state to the ready state. It does not immediately begin execution; instead, it joins the ready queue and waits for the scheduler to select it for CPU execution. This transition makes the process eligible for CPU allocation when the scheduler makes its next selection.

Q48. What is the difference between a process being ready and a process being running?

A.A ready process is loaded into memory and is prepared to execute, while a running process is currently executing on the CPU ✅
B.A ready process is waiting for I/O
C.A running process is loaded into memory
D.There is no difference
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: A ready process is loaded into memory and is prepared to execute but is not currently using the CPU. A running process is currently executing on the CPU. The scheduler selects a ready process to become running, and when a running process must wait for an event, it leaves the running state. These state distinctions are fundamental to scheduling.

Q49. What is the role of the dispatcher in CPU scheduling?

A.To select which process to run next
B.To give control of the CPU to the process selected by the scheduler ✅
C.To create new processes
D.To terminate processes
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The dispatcher is responsible for giving control of the CPU to the process selected by the scheduler. It performs the context switch, loading the saved state of the selected process, and transferring control to that process. The dispatcher handles the mechanics of process switching once the scheduler has made the selection decision.

Q50. How does the length of CPU bursts affect scheduling decisions?

A.CPU burst length has no effect on scheduling decisions
B.Processes with shorter CPU bursts may be prioritized to improve responsiveness ✅
C.All processes receive equal CPU time
D.CPU burst length only affects I/O scheduling
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: CPU burst length is an important consideration in scheduling decisions. Processes with shorter CPU bursts may be prioritized to improve system responsiveness and reduce waiting times for interactive users. Some scheduling algorithms attempt to predict future CPU burst lengths to make more informed scheduling decisions, aiming to optimize performance metrics such as turnaround time and waiting time.

Q51. What is the relationship between process characteristics and CPU scheduling in operating systems?

A.All processes are treated identically by the scheduler
B.The scheduler must consider process characteristics like I/O behavior to make effective decisions ✅
C.Process characteristics are irrelevant to scheduling
D.Only memory size affects scheduling
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Effective CPU scheduling requires consideration of process characteristics. Different processes have different CPU-I/O burst patterns, priorities, and requirements. The scheduler must consider these characteristics when allocating CPU time to achieve system objectives such as fairness, responsiveness, and throughput. Understanding process behavior patterns is essential for scheduler design.

Q52. How does the arrival of new processes affect CPU scheduling?

A.New processes have no effect on scheduling
B.New processes join the ready queue and may be selected for execution ✅
C.New processes are ignored until current processes complete
D.New processes automatically get the CPU
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: When new processes arrive, they are typically placed in the ready queue where they join existing processes waiting for CPU time. The scheduler's selection algorithm determines when these newly arrived processes get CPU service. This interaction between process arrivals and scheduling decisions affects system performance and fairness.

Q53. What is the role of preemption in CPU scheduling?

A.Preemption allows the scheduler to force a running process to release the CPU ✅
B.Preemption prevents context switching
C.Preemption is not used in modern systems
D.Preemption terminates processes
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Preemption in CPU scheduling refers to the ability of the scheduler to forcibly remove a running process from the CPU before it voluntarily releases the CPU. This allows the scheduler to implement time-sharing algorithms, ensure fairness, respond to higher-priority processes, and prevent any single process from monopolizing the CPU. Preemptive scheduling is essential for interactive and real-time systems.

Q54. What is the relationship between scheduling and system responsiveness?

A.Scheduling has no effect on responsiveness
B.Scheduling algorithms significantly affect system responsiveness by determining how quickly processes receive CPU time ✅
C.Responsiveness is determined only by hardware speed
D.Responsiveness depends only on process size
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Scheduling algorithms directly affect system responsiveness by determining how quickly interactive processes receive CPU attention. Preemptive scheduling with appropriate algorithms can ensure that user processes are scheduled promptly, providing acceptable response times. Poor scheduling decisions can result in sluggish system response and poor user experience.

🔗 Related Topics (MCQs)