1. Home
  2. Explore
  3. Computer Science
  4. Process Scheduling

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Process Scheduling

  • 55Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Scheduling Foundations

In general, what does scheduling mean?

55 questions

  1. 1

    In general, what does scheduling mean?

    1. A

      Assigning a resource to a requester at a particular time

    2. B

      Increasing the total number of resources available to requesters

    3. C

      Allowing every requester to use a resource simultaneously

    4. D

      Recording how long a requester has already used a resource

    Correct answer
    A

    Assigning a resource to a requester at a particular time

    Explanation

    Scheduling assigns a resource to someone who needs it and specifies when that resource will be available to them.

  2. 2

    What is the resource assigned in process scheduling, and what is assigned to it?

    1. A

      An input device is assigned to a ready queue for processing at a particular time

    2. B

      A memory location is assigned to a CPU for input at a particular time

    3. C

      The CPU is assigned to a process for execution at a particular time

    4. D

      A process is assigned to an operating system for storage at a particular time

    Correct answer
    C

    The CPU is assigned to a process for execution at a particular time

    Explanation

    Process scheduling selects a process and assigns it to the CPU for execution.

  3. 3

    Why does a scheduler need to choose among processes in a ready queue?

    1. A

      Each process requires a separate CPU, and the system has more processes than memory

    2. B

      Many processes may be ready, while the system has a limited number of CPUs

    3. C

      Processes in the ready queue are already executing and must be moved to storage

    4. D

      The CPU can execute only processes that are waiting for input or output

    Correct answer
    B

    Many processes may be ready, while the system has a limited number of CPUs

    Explanation

    Processes compete for a limited number of CPUs, so the operating system must select which ready process gets CPU time.

  4. 4

    Which statement about the scope of process scheduling is supported by the content?

    1. A

      The discussion of processes can also apply to threads

    2. B

      Threads are excluded because they cannot wait for CPU time

    3. C

      Processes and threads must always be scheduled by separate operating systems

    4. D

      Scheduling applies to threads only when no processes are present

    Correct answer
    A

    The discussion of processes can also apply to threads

    Explanation

    The content notes that the discussion of processes can also cover threads.

  5. 5

    Why is scheduling important on a heavily used service such as a mail server?

    1. A

      It increases the number of CPUs whenever the number of users rises

    2. B

      It guarantees that each user has a dedicated CPU at all times

    3. C

      It helps allocate limited CPU capacity so users receive timely service

    4. D

      It eliminates the need for processes to wait for input and output

    Correct answer
    C

    It helps allocate limited CPU capacity so users receive timely service

    Explanation

    A server may have many processes competing for limited CPUs. Scheduling helps give them CPU time in a way that supports responsive service.

  6. 6

    What is the main scheduling challenge when many processes compete for a small number of CPUs?

    1. A

      Choosing processes so they make progress without excessive delays

    2. B

      Ensuring that every process runs continuously until all others terminate

    3. C

      Preventing processes from entering the ready queue at the same time

    4. D

      Making each process perform its input and output using the CPU

    Correct answer
    A

    Choosing processes so they make progress without excessive delays

    Explanation

    The scheduler must share limited CPU capacity among waiting processes and avoid making users wait excessively.

  7. 7

    What pattern of activity is typical of a program as it executes?

    1. A

      A single CPU burst followed by permanent inactivity

    2. B

      An alternating sequence of memory bursts and process termination

    3. C

      A continuous input/output burst that does not use the CPU

    4. D

      An alternating sequence of CPU bursts and input/output bursts

    Correct answer
    D

    An alternating sequence of CPU bursts and input/output bursts

    Explanation

    Programs commonly alternate between computation on the CPU and input/output activity.

  8. 8

    What is a CPU burst?

    1. A

      A period during which the CPU transfers data directly to a disk

    2. B

      A period during which a process performs computation on the CPU

    3. C

      A period during which a process waits for an input/output device

    4. D

      A period during which a process remains in the ready queue

    Correct answer
    B

    A period during which a process performs computation on the CPU

    Explanation

    A CPU burst is the portion of a program's activity in which it uses the CPU to perform computation.

  9. 9

    What is an input/output burst?

    1. A

      A period during which a process is guaranteed to remain in the ready queue

    2. B

      A period during which a process's requested input/output activity takes place

    3. C

      A period during which the scheduler selects a new process

    4. D

      A period during which a process performs calculations on the CPU

    Correct answer
    B

    A period during which a process's requested input/output activity takes place

    Explanation

    An input/output burst is the interval associated with input/output activity, which commonly alternates with CPU bursts.

  10. 10

    Why can an input/output burst take longer than a CPU burst?

    1. A

      Input/output bursts always include more CPU instructions than CPU bursts

    2. B

      Input/output devices are much slower than the CPU

    3. C

      The CPU must perform every input/output operation itself

    4. D

      Processes are prevented from using the CPU during computation

    Correct answer
    B

    Input/output devices are much slower than the CPU

    Explanation

    The content emphasizes that input/output is much slower than CPU computation, so an input/output burst can take much longer.

  11. 11

    When a process is waiting for an input/output operation that proceeds between a device and memory, what can happen to the CPU?

    1. A

      It must perform the input/output transfer instruction by instruction

    2. B

      It must wait until the device has completed every process's input/output

    3. C

      It can remain idle with respect to that process while the input/output proceeds

    4. D

      It automatically terminates the process that requested the operation

    Correct answer
    C

    It can remain idle with respect to that process while the input/output proceeds

    Explanation

    With mechanisms such as direct memory access, input/output can proceed between the device and memory without the CPU doing that transfer. The CPU may therefore be idle with respect to the waiting process.

  12. 12

    How can scheduling make better use of the CPU while one process is waiting for input/output?

    1. A

      Run another process's CPU burst during the first process's input/output burst

    2. B

      Make the first process continue computing while its input/output is pending

    3. C

      Pause all processes until the first process's input/output burst ends

    4. D

      Transfer the first process's input/output burst to the ready queue

    Correct answer
    A

    Run another process's CPU burst during the first process's input/output burst

    Explanation

    While one process waits for input/output, the scheduler can run another process that is ready to use the CPU, overlapping computation and input/output.

  13. 13

    What does the degree of multiprogramming describe?

    1. A

      The total number of processes that have ever entered the system

    2. B

      The number of CPUs that one process can use during a single CPU burst

    3. C

      The maximum number of processes admitted into the system at the same time

    4. D

      The number of input/output operations a process completes per second

    Correct answer
    C

    The maximum number of processes admitted into the system at the same time

    Explanation

    The degree of multiprogramming is the maximum number of processes admitted into the system simultaneously, across states such as running, ready, and waiting.

  14. 14

    If a system has four CPUs, what is the greatest number of processes that can be running at once, according to the content?

    1. A

      One process

    2. B

      Four processes

    3. C

      Any number of processes, because all can run at the same time

    4. D

      A number equal to the degree of multiprogramming

    Correct answer
    B

    Four processes

    Explanation

    With four CPUs, at most four processes can be in the running state at one time, although additional processes can be ready or waiting.

  15. 15

    Which program is used as an example of a CPU-bound job?

    1. A

      Matrix multiplication

    2. B

      A program that only prints a short message

    3. C

      A program that only waits for a disk operation

    4. D

      Matrix addition

    Correct answer
    A

    Matrix multiplication

    Explanation

    Matrix multiplication is presented as CPU-bound because it involves roughly n3n^3n3 multiplications while reading matrices of size roughly n2n^2n2.

  16. 16

    Why is matrix addition used as an example of an input/output-bound job?

    1. A

      It performs roughly n2n^2n2 input/output operations and no computation

    2. B

      It performs roughly n2n^2n2 additions and has roughly n2n^2n2 input/output operations

    3. C

      It performs roughly n3n^3n3 additions and has roughly n2n^2n2 input/output operations

    4. D

      It performs roughly n2n^2n2 additions and has no input/output operations

    Correct answer
    B

    It performs roughly n2n^2n2 additions and has roughly n2n^2n2 input/output operations

    Explanation

    The example characterizes matrix addition as having about n2n^2n2 computations and n2n^2n2 input/output operations; because input/output is relatively costly, it is input/output-bound.

  17. 17

    What scheduling benefit can come from mixing CPU-bound and input/output-bound jobs?

    1. A

      The input/output-bound job can make the CPU perform the disk transfer

    2. B

      Both jobs can avoid all CPU and input/output activity

    3. C

      The CPU-bound job can eliminate the other job's need for input/output

    4. D

      One job can use the CPU while another job is waiting for input/output

    Correct answer
    D

    One job can use the CPU while another job is waiting for input/output

    Explanation

    When one job is waiting for input/output, another can use the CPU. A mix of job types can therefore help overlap computation and input/output.

  18. 18

    What is the primary context for a long-term scheduler in the content?

    1. A

      Batch jobs that may be submitted and collected later

    2. B

      Interrupt service routines that handle hardware events

    3. C

      Interactive actions that require a response within a few milliseconds

    4. D

      Input/output requests that must be completed by a device

    Correct answer
    A

    Batch jobs that may be submitted and collected later

    Explanation

    Long-term scheduling is associated with batch jobs, such as a large computation submitted for execution and collected later.

  19. 19

    Which situation best illustrates the short-term scheduling context described?

    1. A

      A user taps a phone screen and expects an immediate response

    2. B

      A user submits a simulation overnight and collects it the next morning

    3. C

      A batch job is stored without being admitted to the system

    4. D

      A process remains suspended while a long-term job is prepared

    Correct answer
    A

    A user taps a phone screen and expects an immediate response

    Explanation

    Short-term scheduling is associated with interactive systems, where actions such as tapping a mobile phone should receive prompt service.

  20. 20

    How does the invocation frequency of a short-term scheduler compare with that of a long-term scheduler?

    1. A

      Both schedulers run only when a process terminates

    2. B

      The short-term scheduler may run every millisecond or tens of milliseconds, while the long-term scheduler may run every seconds or minutes

    3. C

      The short-term scheduler may run every minute, while the long-term scheduler must run every millisecond

    4. D

      Both schedulers run at the same fixed interval of several seconds

    Correct answer
    B

    The short-term scheduler may run every millisecond or tens of milliseconds, while the long-term scheduler may run every seconds or minutes

    Explanation

    The content contrasts short-term scheduling, which may be invoked every millisecond or tens of milliseconds, with long-term scheduling, which may be invoked every seconds or minutes.

  21. 21

    Where does a medium-term scheduler fit relative to the other two scheduler types?

    1. A

      At the same level as the hardware interrupt service routine

    2. B

      Only within the input/output device, outside the operating system

    3. C

      After the dispatcher but before the CPU executes a process

    4. D

      Between the short-term and long-term schedulers

    Correct answer
    D

    Between the short-term and long-term schedulers

    Explanation

    The content describes the medium-term scheduler as lying between the short-term and long-term schedulers.

  22. 22

    What is the scheduler's role in the scheduling process?

    1. A

      It switches the CPU from kernel mode to user mode by itself

    2. B

      It performs all computation for the process selected from the queue

    3. C

      It transfers input/output data between a device and memory

    4. D

      It examines the queue and selects which process should be scheduled

    Correct answer
    D

    It examines the queue and selects which process should be scheduled

    Explanation

    The scheduler examines the queue and decides which process should run next. The dispatcher then carries out the handoff.

  23. 23

    After the scheduler selects a process, what is the dispatcher's role?

    1. A

      To determine how many input/output devices the system contains

    2. B

      To choose a different process without consulting the scheduler

    3. C

      To take the selected process and hand it control of the CPU

    4. D

      To add every waiting process to the running state

    Correct answer
    C

    To take the selected process and hand it control of the CPU

    Explanation

    The dispatcher carries out the selected process's transfer to the CPU after the scheduler has made its choice.

  24. 24

    Which description best characterizes the dispatcher?

    1. A

      A user program that determines the arrival time of every process

    2. B

      A queue that stores only processes that have terminated

    3. C

      A hardware device that performs all process input/output

    4. D

      Operating-system code that takes the CPU from one process and hands it to another

    Correct answer
    D

    Operating-system code that takes the CPU from one process and hands it to another

    Explanation

    The dispatcher is the operating-system code responsible for the task switch that hands the CPU to the newly scheduled process.

  25. 25

    What does dispatch latency measure?

    1. A

      The time a process spends performing its complete input/output burst

    2. B

      The time between a process's arrival and its termination

    3. C

      The time a device spends transferring data to memory

    4. D

      The time required to stop one process and start another

    Correct answer
    D

    The time required to stop one process and start another

    Explanation

    Dispatch latency is the time the dispatcher takes to stop one process and start another.

  26. 26

    Which event can move a running process into the waiting state?

    1. A

      An external interrupt occurs while the process remains ready

    2. B

      The process requests a service and must wait for it

    3. C

      A different process finishes its input/output operation

    4. D

      The process completes its execution successfully

    Correct answer
    B

    The process requests a service and must wait for it

    Explanation

    A running process can enter the waiting state when it requests a service, such as an input/output operation, that is not yet complete.

  27. 27

    What can happen to a running process when an external interrupt occurs?

    1. A

      It can be moved directly from running to waiting only

    2. B

      It must be moved from running to terminated

    3. C

      It can be moved from running to ready

    4. D

      It must remain running until its next input/output burst

    Correct answer
    C

    It can be moved from running to ready

    Explanation

    An external interrupt can cause a running process to be moved to the ready state.

  28. 28

    What can happen when a process's requested system service finishes?

    1. A

      The process can move from waiting to ready

    2. B

      The process can move from waiting directly to executing without scheduling

    3. C

      The process must remain waiting until it requests another service

    4. D

      The process must move from waiting to terminated

    Correct answer
    A

    The process can move from waiting to ready

    Explanation

    When a requested system service completes, a waiting process can become ready to run again.

  29. 29

    Which event can cause the operating system to terminate a process?

    1. A

      An external interrupt moves the process from running to ready

    2. B

      The process completes a normal CPU burst and requests input/output

    3. C

      The process enters the ready queue after an input/output operation

    4. D

      The process finishes or encounters an unrecoverable exception

    Correct answer
    D

    The process finishes or encounters an unrecoverable exception

    Explanation

    A process may terminate when it completes, or when an exception such as division by zero prevents it from continuing.

  30. 30

    Why must the dispatcher switch to user mode before giving control to a user program?

    1. A

      To let the user program save the previous process's kernel state

    2. B

      To ensure that the user program can change the hardware timer before it starts

    3. C

      To prevent the user program from briefly executing with kernel-level privileges

    4. D

      To allow the user program to perform operating-system scheduling in kernel mode

    Correct answer
    C

    To prevent the user program from briefly executing with kernel-level privileges

    Explanation

    The dispatcher should switch to user mode first and then give control to the program. Giving the program control before switching modes could let it execute with kernel privileges, creating a security vulnerability.

  31. 31

    What is a key distinction between non-preemptive and preemptive scheduling?

    1. A

      Non-preemptive scheduling supports one process, while preemptive scheduling supports no processes

    2. B

      Non-preemptive scheduling does not forcibly stop a running process, while preemptive scheduling can

    3. C

      Non-preemptive scheduling uses a CPU, while preemptive scheduling uses only input/output devices

    4. D

      Non-preemptive scheduling applies only to threads, while preemptive scheduling applies only to jobs

    Correct answer
    B

    Non-preemptive scheduling does not forcibly stop a running process, while preemptive scheduling can

    Explanation

    In non-preemptive scheduling, the operating system does not forcibly take the CPU from a running process. Preemptive scheduling allows it to do so.

  32. 32

    Under non-preemptive scheduling, when can a running process normally give up the CPU?

    1. A

      Whenever another process enters the ready queue

    2. B

      When it terminates, requests input/output, or completes its CPU burst

    3. C

      Only when a user program changes from user mode to kernel mode

    4. D

      Whenever the scheduler calculates a higher throughput value

    Correct answer
    B

    When it terminates, requests input/output, or completes its CPU burst

    Explanation

    In non-preemptive scheduling, the running process can lose the processor voluntarily, such as by terminating or requesting input/output, or after its CPU burst completes.

  33. 33

    Why is non-preemptive scheduling also described as cooperative scheduling in the content?

    1. A

      The scheduler asks every input/output device to select the next process

    2. B

      A hardware timer always stops the process at the end of each instruction

    3. C

      The dispatcher allows all processes to use the CPU simultaneously

    4. D

      The running process must give up the CPU rather than being forcibly stopped by the operating system

    Correct answer
    D

    The running process must give up the CPU rather than being forcibly stopped by the operating system

    Explanation

    In cooperative scheduling, the operating system does not forcibly stop a running process; the process gives up the CPU through events such as requesting input/output or encountering a trap.

  34. 34

    What hardware mechanism is essential for preemptive scheduling as described?

    1. A

      A hardware timer that can generate an interrupt

    2. B

      A memory segment that changes processes into input/output devices

    3. C

      A console that sends a message whenever a CPU burst begins

    4. D

      A disk controller that selects processes from the ready queue

    Correct answer
    A

    A hardware timer that can generate an interrupt

    Explanation

    A hardware timer can interrupt the currently running process, allowing the operating system to regain control and preempt it.

  35. 35

    How can the operating system regain the CPU while a user process is running?

    1. A

      The operating system waits until the process has finished every possible CPU burst

    2. B

      The dispatcher sends a user-mode request that the process must approve

    3. C

      The process's input/output device directly selects a new process without an interrupt

    4. D

      A programmed hardware timer generates an interrupt that transfers control to an interrupt service routine

    Correct answer
    D

    A programmed hardware timer generates an interrupt that transfers control to an interrupt service routine

    Explanation

    The operating system programs a timer. When the timer generates a hardware interrupt, control transfers to an interrupt service routine that is part of the operating system.

  36. 36

    Which example is a trap that can cause a process to enter operating-system handling?

    1. A

      Finishing a normal input/output operation

    2. B

      Writing to a read-only segment

    3. C

      Being selected by the scheduler for execution

    4. D

      Waiting in the ready queue for CPU time

    Correct answer
    B

    Writing to a read-only segment

    Explanation

    Writing to a read-only segment is listed as a trap. Other examples include division by zero, stack overflow, and accessing an invalid page.

  37. 37

    What happens after hardware detects a trap caused by a process?

    1. A

      Control transfers to an interrupt service routine in the operating system

    2. B

      The process is guaranteed to continue in user mode without interruption

    3. C

      The dispatcher immediately resumes the process without operating-system involvement

    4. D

      The process is placed permanently in the ready queue

    Correct answer
    A

    Control transfers to an interrupt service routine in the operating system

    Explanation

    The hardware detects the trap and transfers control to an interrupt service routine, which is part of the operating system and can handle the process's exception.

  38. 38

    Why can non-preemptive execution raise security concerns?

    1. A

      The dispatcher must run every user program in kernel mode

    2. B

      A process is automatically given access to every other process's memory

    3. C

      A hardware timer prevents the operating system from ever regaining control

    4. D

      A process that cannot be forcibly interrupted may continue acting without timely operating-system intervention

    Correct answer
    D

    A process that cannot be forcibly interrupted may continue acting without timely operating-system intervention

    Explanation

    The content notes that a non-preemptive process cannot be interrupted while executing, which can make it harder for the operating system to control what it does.

  39. 39

    How can preemptive scheduling help reduce process starvation?

    1. A

      It can stop a process from monopolizing the CPU and allow other processes to run

    2. B

      It ensures that every process performs input/output at the same speed

    3. C

      It guarantees that every process finishes in the same amount of CPU time

    4. D

      It removes all processes from the ready queue after one CPU burst

    Correct answer
    A

    It can stop a process from monopolizing the CPU and allow other processes to run

    Explanation

    Preemption allows the operating system to stop a process that would otherwise keep the CPU, giving other processes an opportunity to run within a reasonable time.

  40. 40

    Which issue is raised by preemptive scheduling in addition to deciding when to stop a process?

    1. A

      Ensuring that input/output devices never operate while the CPU is active

    2. B

      Eliminating the need for context switching between processes

    3. C

      Coordinating access to shared data and deciding whether an interrupt can interrupt another interrupt

    4. D

      Preventing any process from entering the waiting state

    Correct answer
    C

    Coordinating access to shared data and deciding whether an interrupt can interrupt another interrupt

    Explanation

    Preemption raises additional concerns, including coordination over shared data and whether an interrupt can itself be interrupted.

  41. 41

    Which measure describes the fraction or extent to which the CPU is kept busy?

    1. A

      Throughput

    2. B

      Turnaround time

    3. C

      Response time

    4. D

      CPU utilization

    Correct answer
    D

    CPU utilization

    Explanation

    CPU utilization measures how much the CPU is being used. Scheduling typically seeks to keep it high, while also considering other criteria.

  42. 42

    What does throughput measure?

    1. A

      The time required to switch from one process to another

    2. B

      The number of processes that complete per unit time

    3. C

      The total time a process spends in the ready queue

    4. D

      The time from a process's arrival until its first response

    Correct answer
    B

    The number of processes that complete per unit time

    Explanation

    Throughput is the number of processes completed per unit of time.

  43. 43

    What is a process's turnaround time?

    1. A

      The time from its arrival until its first response

    2. B

      The time required to switch from kernel mode to user mode

    3. C

      The time from its arrival until it finishes

    4. D

      The time it spends waiting only in the ready queue

    Correct answer
    C

    The time from its arrival until it finishes

    Explanation

    Turnaround time is the total elapsed time from arrival to completion.

  44. 44

    Which time interval is the scheduler's waiting-time concern?

    1. A

      The time a process spends waiting in the ready queue

    2. B

      The time a process spends waiting for an input/output device to finish

    3. C

      The time a process spends executing its CPU instructions

    4. D

      The time from submitting a request until its first response

    Correct answer
    A

    The time a process spends waiting in the ready queue

    Explanation

    Waiting time refers to time in the ready queue. Time waiting for an input/output device depends on that device's speed rather than the scheduler's ready-queue decision.

  45. 45

    What does response time measure?

    1. A

      The time from submitting a request until the first response is produced

    2. B

      The time from a process's arrival until it enters the ready queue

    3. C

      The time spent performing all CPU bursts in a process

    4. D

      The time from submitting a request until the entire process finishes

    Correct answer
    A

    The time from submitting a request until the first response is produced

    Explanation

    Response time measures how long it takes to produce the first response after a request is submitted; it does not require the complete output to be finished.

  46. 46

    For a non-preemptive process that runs once after entering the ready queue, how is its waiting time calculated?

    1. A

      Finish time minus arrival time

    2. B

      Arrival time minus start time

    3. C

      Start time minus arrival time

    4. D

      Finish time minus arrival time minus CPU time

    Correct answer
    C

    Start time minus arrival time

    Explanation

    For a non-preemptive process, waiting time is its start time minus its arrival time.

  47. 47

    For a preemptive process, which expression gives its total waiting time?

    1. A

      Start time minus arrival time

    2. B

      Finish time minus arrival time minus CPU time

    3. C

      Arrival time plus CPU time minus finish time

    4. D

      Finish time minus start time

    Correct answer
    B

    Finish time minus arrival time minus CPU time

    Explanation

    For a preemptive process, total waiting time is calculated as finish time minus arrival time minus CPU time.

  48. 48

    Which expression gives turnaround time?

    1. A

      Arrival time minus finish time

    2. B

      Start time minus arrival time

    3. C

      Finish time minus arrival time

    4. D

      Finish time minus CPU time

    Correct answer
    C

    Finish time minus arrival time

    Explanation

    Turnaround time is calculated as finish time minus arrival time.

  49. 49

    Which combination of goals is identified as a common scheduling objective?

    1. A

      Minimize CPU utilization and throughput while maximizing all process times

    2. B

      Maximize CPU utilization and throughput while minimizing turnaround, waiting, and response times

    3. C

      Maximize waiting time and response time while minimizing throughput

    4. D

      Keep CPU utilization fixed while ignoring process completion and response

    Correct answer
    B

    Maximize CPU utilization and throughput while minimizing turnaround, waiting, and response times

    Explanation

    The content lists maximizing CPU utilization and throughput, and minimizing turnaround time, waiting time, and response time as scheduling criteria.

  50. 50

    Why is high CPU utilization alone not a sufficient scheduling goal?

    1. A

      High utilization guarantees that all processes finish at the same time

    2. B

      A process could monopolize the CPU while other processes starve

    3. C

      High utilization prevents the CPU from executing any input/output-bound job

    4. D

      A process that uses the CPU continuously must have the shortest response time

    Correct answer
    B

    A process could monopolize the CPU while other processes starve

    Explanation

    A scheduler could keep the CPU busy by running one long process continuously, but other processes might wait excessively or starve. Throughput and other measures also matter.

  51. 51

    What does it mean to minimize variance in scheduling measures?

    1. A

      Maximize the difference between the best and worst process outcomes

    2. B

      Make performance more predictable rather than very fast at some times and very slow at others

    3. C

      Ensure that every scheduling measure is always zero

    4. D

      Make every process use exactly the same amount of CPU time

    Correct answer
    B

    Make performance more predictable rather than very fast at some times and very slow at others

    Explanation

    Minimizing variance means avoiding highly inconsistent results. More predictable performance helps users have confidence in the system.

  52. 52

    How can scheduling algorithms differ in their approach to average and worst-case performance?

    1. A

      Algorithms cannot trade off average performance against worst-case behavior

    2. B

      One may favor excellent average performance, while another may limit how bad the worst case becomes

    3. C

      Every algorithm must optimize only the worst case and ignore average performance

    4. D

      Every algorithm must optimize only the average case and ignore the worst case

    Correct answer
    B

    One may favor excellent average performance, while another may limit how bad the worst case becomes

    Explanation

    The content describes algorithms that may emphasize strong average performance or attempt to control the worst-case outcome.

  53. 53

    Why can different users prefer different scheduling criteria?

    1. A

      Different criteria cannot be applied to the same scheduling algorithm

    2. B

      The purpose of the system affects which performance measure matters most

    3. C

      Scheduling criteria depend only on the number of input/output devices

    4. D

      All users need the same process to run first, regardless of the system

    Correct answer
    B

    The purpose of the system affects which performance measure matters most

    Explanation

    The appropriate criterion depends on the system's purpose and users' needs. For example, interactive systems and batch systems value different measures.

  54. 54

    Which scheduling measure is especially important for a real-time interactive system?

    1. A

      Response time

    2. B

      Maximum input/output burst length

    3. C

      Number of processes currently in the terminated state

    4. D

      Total number of processes ever admitted

    Correct answer
    A

    Response time

    Explanation

    For real-time and interactive systems, it is especially important to provide a prompt first response to a request.

  55. 55

    Which measure is particularly relevant to a user waiting for a batch simulation to finish?

    1. A

      The length of the first input/output burst

    2. B

      Turnaround time

    3. C

      The number of processes in the ready queue

    4. D

      Dispatch latency alone

    Correct answer
    B

    Turnaround time

    Explanation

    A user submitting a batch simulation and collecting the result later is particularly interested in how long the job takes to complete, or its turnaround time.

Question 1 of 55
Question 1 of 55

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent