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

  • 89Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Scheduling Fundamentals
In the general scheduling analogy, scheduling means assigning a resource to someone at a particular
.

89 questions

  1. 1
    In the general scheduling analogy, scheduling means assigning a resource to someone at a particular
    _____
    .
    Hint

    Think about what determines when a class or meeting takes place.

    Answer

    time

  2. 2
    In process scheduling, the resource to which the operating system assigns a process is the
    _____
    .
    Hint

    This component executes program instructions.

    Answer

    CPU

  3. 3
    Process scheduling is also called
    _____
    scheduling because it assigns processes to that component.
    Hint

    Use the name of the resource that executes processes.

    Answer

    CPU

  4. 4
    When many processes are waiting but the system has only one CPU, the operating system must select a process from the
    _____
    queue.
    Hint

    This queue holds processes prepared to run but not currently using the CPU.

    Answer

    ready

  5. 5
    Because a system has a limited number of CPUs, the operating system must choose which waiting process gets access to the
    _____
    .
    Hint

    The selected process is assigned to the processor for execution.

    Answer

    CPU

  6. 6
    A scheduling system should ensure that processes do not wait indefinitely, a problem called
    _____
    .
    Hint

    This occurs when a process is continually denied a chance to run.

    Answer

    starvation

  7. 7
    The scheduler examines the queue and decides
    _____
    process should run next.
    Hint

    It makes a selection among the waiting processes.

    Answer

    which

  8. 8
    After the scheduler selects a process, the component that transfers it to the CPU is the
    _____
    .
    Hint

    This component carries out the scheduler’s selection.

    Answer

    dispatcher

  9. 9
    The scheduler and dispatcher are two distinct
    _____
    of the operating system’s scheduling activity.
    Hint

    One selects a process; the other transfers it to the CPU.

    Answer

    components

  10. 10
    Scheduling can apply to processes and also to
    _____
    .
    Hint

    These are units of execution that can exist within a process.

    Answer

    threads

  11. 11
    In the mail-server example, each user login can cause a new
    _____
    to be created.
    Hint

    It is an executing instance that may then wait for CPU service.

    Answer

    process

  12. 12
    A scheduler serving many users should aim to make their experience feel responsive, rather than noticeably
    _____
    .
    Hint

    The goal is for a requested service to arrive quickly.

    Answer

    delayed

  13. 13
    A program commonly alternates between computation and
    _____
    activity.
    Hint

    This activity involves communication with devices such as a disk or console.

    Answer

    I/O

  14. 14
    A period during which a process performs computation on the processor is called a
    _____
    burst.
    Hint

    It is the type of burst associated with processor activity.

    Answer

    CPU

  15. 15
    A period during which a process performs input/output activity is called an
    _____
    burst.
    Hint

    It is the burst associated with devices such as disks.

    Answer

    I/O

  16. 16
    CPU bursts and I/O bursts in a program do not have to be
    _____
    in duration.
    Hint

    The content notes that I/O bursts often take much longer.

    Answer

    equal

  17. 17
    Compared with the CPU, I/O operations are generally much
    _____
    .
    Hint

    Many CPU operations can occur during the time needed for a small number of I/O operations.

    Answer

    slower

  18. 18
    While a process is waiting for an I/O operation, its CPU is generally
    _____
    with respect to that process.
    Hint

    The process is waiting on the device rather than performing computation.

    Answer

    idle

  19. 19
    In the described I/O arrangement, direct memory access allows I/O to occur without involving the
    _____
    .
    Hint

    The device transfers data in coordination with memory.

    Answer

    CPU

  20. 20
    If only one process runs, its I/O burst can leave the CPU idle; running another process’s CPU burst during that time creates
    _____
    between computation and I/O.
    Hint

    Different jobs can use the CPU and an I/O device during the same period.

    Answer

    overlap

  21. 21
    Overlapping one process’s CPU burst with another process’s I/O burst can improve utilization of both the CPU and the
    _____
    device.
    Hint

    This is the device performing the other process’s input/output.

    Answer

    I/O

  22. 22
    A job with substantial computation, such as matrix multiplication, is described as
    _____
    -bound.
    Hint

    Its main demand is for processor time.

    Answer

    CPU

  23. 23
    A job whose performance is dominated by input/output activity is described as
    _____
    -bound.
    Hint

    Its main demand is for operations involving devices or data transfer.

    Answer

    I/O

  24. 24
    For multiplying two n×nn \times nn×n matrices, the content contrasts approximately n3n^3n3 multiplications with approximately n2n^2n2 input operations, making the example
    _____
    -bound.
    Hint

    The computation grows faster than the amount of input described.

    Answer

    CPU

  25. 25
    Matrix addition is used as an example of an
    _____
    -bound program because its input/output operations are costly relative to its computation.
    Hint

    The content contrasts its order n2n^2n2 computation with order n2n^2n2 input/output.

    Answer

    I/O

  26. 26
    A process’s execution pattern of CPU activity followed by I/O activity and then more CPU activity illustrates that programs commonly alternate between CPU and
    _____
    bursts.
    Hint

    This is the type of burst that follows a CPU burst in the pattern.

    Answer

    I/O

  27. 27
    A program with many short CPU bursts separated by I/O bursts is typically
    _____
    -bound.
    Hint

    Its execution pattern has frequent I/O activity and relatively brief computation.

    Answer

    I/O

  28. 28
    A program with only a few long CPU bursts is typically
    _____
    -bound.
    Hint

    Its execution pattern contains extended periods of computation.

    Answer

    CPU

  29. 29
    The maximum number of processes admitted into a system and executed simultaneously is called the degree of
    _____
    .
    Hint

    The term describes having multiple processes in the system at once.

    Answer

    multiprogramming

  30. 30
    The degree of multiprogramming counts processes across states such as running, ready, waiting, and
    _____
    .
    Hint

    This state is included along with the other listed process states.

    Answer

    suspended

  31. 31
    If a system has four CPUs, at most
    _____
    processes can be running at the same instant.
    Hint

    At most one process can run on each CPU at a time.

    Answer

    four

  32. 32
    A long-term scheduler is primarily associated with
    _____
    jobs.
    Hint

    These jobs can be submitted for execution and collected later rather than interacting continuously.

    Answer

    batch

  33. 33
    A large simulation submitted for overnight execution and collected the next morning is an example suited to
    _____
    scheduling.
    Hint

    This scheduling category handles batch work that can take a long time.

    Answer

    long-term

  34. 34
    In the content’s rule of thumb, a job assigned to the CPU for more than ten minutes falls under
    _____
    scheduling.
    Hint

    The category is defined as handling longer-running work.

    Answer

    long-term

  35. 35
    The scheduling category described as lying between short-term and long-term scheduling is
    _____
    -term scheduling.
    Hint

    Its name indicates an intermediate time scale.

    Answer

    medium

  36. 36
    Scheduling that supports interactive operating systems, such as immediate responses to actions on a mobile phone, is
    _____
    -term scheduling.
    Hint

    This category responds on a very quick time scale.

    Answer

    short

  37. 37
    The content contrasts long-term scheduling invoked every seconds or minutes with short-term scheduling invoked every millisecond or tens of
    _____
    .
    Hint

    Complete the shorter time unit used in the description.

    Answer

    milliseconds

  38. 38
    A scheduler invoked once every second or minute is described as a
    _____
    -term scheduler.
    Hint

    This category is contrasted with the much more frequently invoked short-term scheduler.

    Answer

    long

  39. 39
    A running process may move to the waiting state when it requests a service from the
    _____
    .
    Hint

    The process waits while this software handles the requested service.

    Answer

    operating system

  40. 40
    A process may move from running to ready when an external
    _____
    occurs.
    Hint

    This event can cause a running process to stop using the CPU without requesting a service itself.

    Answer

    interrupt

  41. 41
    When a requested system call finishes, a process can move from waiting to
    _____
    .
    Hint

    The process is prepared to run again but may still need to wait for CPU assignment.

    Answer

    ready

  42. 42
    A process that has completed execution, or cannot continue after an unrecoverable exception, may be
    _____
    by the scheduler.
    Hint

    This is the process state indicating that execution has ended.

    Answer

    terminated

  43. 43
    The duration from when a process arrives until it finishes is its
    _____
    time.
    Hint

    This measure includes the process’s entire time in the system.

    Answer

    turnaround

  44. 44
    The number of processes that complete execution per unit time is called
    _____
    .
    Hint

    This measure counts completed work over time.

    Answer

    throughput

  45. 45
    The time a process spends waiting in the ready queue is its
    _____
    time.
    Hint

    This measure excludes time spent waiting for an I/O device in the waiting state.

    Answer

    waiting

  46. 46
    The time from submitting a request until the first response is produced is the
    _____
    time.
    Hint

    This measures how quickly a user receives an initial acknowledgment or result.

    Answer

    response

  47. 47
    For a non-preemptive process, waiting time is calculated as start time minus
    _____
    time.
    Hint

    This is the time when the process first enters the system or queue.

    Answer

    arrival

  48. 48
    For a preemptive process, total waiting time can be calculated as finish time minus arrival time minus
    _____
    time.
    Hint

    Subtract the total time the process actually spends executing.

    Answer

    CPU

  49. 49
    Using the relationship in the lesson, turnaround time equals finish time minus
    _____
    time.
    Hint

    Turnaround covers the full interval from the process entering the system to completion.

    Answer

    arrival

  50. 50
    Waiting time and turnaround time are related but are not the
    _____
    measure.
    Hint

    Turnaround includes more than ready-queue waiting.

    Answer

    same

  51. 51
    Time a process spends waiting for an I/O operation depends on the speed of the
    _____
    device.
    Hint

    The scheduler does not control how quickly this device completes its operation.

    Answer

    I/O

  52. 52
    The time it takes the dispatcher to stop one process and start another is called dispatch
    _____
    .
    Hint

    This term refers to the delay involved in switching execution.

    Answer

    latency

  53. 53
    The time between submitting a request and receiving the complete output is not the definition of response time; response time ends at the
    _____
    response.
    Hint

    An initial acknowledgment can count even when the full result is not ready.

    Answer

    first

  54. 54
    For interactive services, a quick initial acknowledgment can improve a user’s sense that the system is
    _____
    .
    Hint

    This quality describes how promptly a system reacts to requests.

    Answer

    responsive

  55. 55
    In a real-time operating system, the content identifies
    _____
    time as especially important.
    Hint

    Real-time systems care about how quickly a request receives its first result.

    Answer

    response

  56. 56
    A scheduling algorithm commonly seeks to maximize CPU utilization and
    _____
    .
    Hint

    This second measure counts how many processes finish per unit time.

    Answer

    throughput

  57. 57
    A scheduling algorithm commonly seeks to minimize turnaround time, waiting time, and
    _____
    time.
    Hint

    This is the measure of time until the first response.

    Answer

    response

  58. 58
    Maximizing CPU utilization alone can be unfair if one long-running program keeps other processes from running, causing
    _____
    .
    Hint

    The neglected processes may wait indefinitely.

    Answer

    starvation

  59. 59
    Considering throughput alongside CPU utilization helps account for how many processes
    _____
    .
    Hint

    Throughput counts finished processes per unit time.

    Answer

    complete

  60. 60
    A scheduling policy that runs one 100-unit job while two 25-unit jobs wait may have high CPU utilization but low
    _____
    .
    Hint

    The issue is the number of completed processes in a given interval.

    Answer

    throughput

  61. 61
    Scheduling criteria can be optimized for average-case behavior or for limiting the
    _____
    case.
    Hint

    This is the most unfavorable possible outcome.

    Answer

    worst

  62. 62
    The content stresses that a good scheduling measure should have low
    _____
    so performance is predictable.
    Hint

    This describes how widely results differ across cases.

    Answer

    variance

  63. 63
    When performance varies unpredictably from very fast to very slow, users have less
    _____
    in the system.
    Hint

    Predictable behavior helps users trust a system.

    Answer

    confidence

  64. 64
    The scheduling criterion that matters most depends on the
    _____
    of the system.
    Hint

    A batch system and a real-time system have different goals.

    Answer

    purpose

  65. 65
    For a batch workload such as an overnight simulation, a user may care especially about
    _____
    time.
    Hint

    This measures the full time from submission to completion.

    Answer

    turnaround

  66. 66
    For a real-time system, a key concern is minimizing
    _____
    time rather than focusing primarily on throughput.
    Hint

    This measure reflects how quickly the system reacts to a request.

    Answer

    response

  67. 67
    Different operating-system users may judge scheduling efficiency differently because they value different
    _____
    .
    Hint

    Examples include throughput, turnaround time, and response time.

    Answer

    criteria

  68. 68
    A scheduling approach in which the operating system cannot forcibly stop a running process is called
    _____
    scheduling.
    Hint

    The process keeps the CPU until it gives it up itself.

    Answer

    non-preemptive

  69. 69
    In non-preemptive scheduling, a running process generally gives up the CPU by completing its CPU burst, terminating, or requesting
    _____
    .
    Hint

    The process may give up the processor while waiting for a device operation.

    Answer

    I/O

  70. 70
    Scheduling in which the operating system can remove a process from the CPU at any point is called
    _____
    scheduling.
    Hint

    The operating system can interrupt a process rather than wait for it to give up the CPU.

    Answer

    preemptive

  71. 71
    When a process encounters an event such as divide by zero or an invalid memory access, the event is called a
    _____
    .
    Hint

    This event transfers control to operating-system handling.

    Answer

    trap

  72. 72
    When a hardware-detected trap occurs, control transfers to an
    _____
    service routine.
    Hint

    This routine is part of the operating system and handles the event.

    Answer

    interrupt

  73. 73
    Scheduling that relies on a process giving up the CPU voluntarily, such as when it requests I/O, is also called
    _____
    scheduling.
    Hint

    The process participates by yielding the processor rather than being forcibly stopped.

    Answer

    cooperative

  74. 74
    A process may cooperate with scheduling by deciding it has used enough CPU time and giving other processes a
    _____
    .
    Hint

    It voluntarily yields the processor so another process can run.

    Answer

    chance

  75. 75
    To regain CPU control while another process is running, the operating system can program a hardware
    _____
    .
    Hint

    When it expires, it generates an interrupt.

    Answer

    timer

  76. 76
    The hardware mechanism described as essential for preemptive scheduling is a
    _____
    -based interrupt.
    Hint

    It is programmed to interrupt execution after a set interval.

    Answer

    timer

  77. 77
    After a programmed timer interrupt occurs, control returns to the operating system through the interrupt service
    _____
    .
    Hint

    It is the operating-system code that handles the interrupt.

    Answer

    routine

  78. 78
    Preemptive scheduling can prevent a process from monopolizing the CPU and can reduce process
    _____
    .
    Hint

    This is the problem of processes waiting too long without CPU access.

    Answer

    starvation

  79. 79
    Preemptive scheduling introduces concerns such as coordinating access to
    _____
    data.
    Hint

    Multiple processes may access this data while execution is interrupted and resumed.

    Answer

    shared

  80. 80
    Another issue raised by preemptive scheduling is whether it is safe to interrupt an
    _____
    .
    Hint

    The question concerns interrupting a handler that is already handling an interrupt.

    Answer

    interrupt

  81. 81
    The dispatcher performs task switching, including saving the current process information and loading the
    _____
    process information.
    Hint

    This is the process selected to run next.

    Answer

    new

  82. 82
    After completing the necessary context switch, the dispatcher should switch to
    _____
    mode before giving control to a user program.
    Hint

    The program should execute with user-level privileges, not kernel-level privileges.

    Answer

    user

  83. 83
    Giving control to a user program before switching out of kernel mode could let it execute with excessive
    _____
    .
    Hint

    Kernel mode allows more access than user mode.

    Answer

    privileges

  84. 84
    The dispatcher gives control of the CPU to the process chosen by the short-term or
    _____
    scheduler.
    Hint

    The content names this as the other scheduler that may select a process.

    Answer

    long-term

  85. 85
    Scheduling algorithms are evaluated using CPU utilization, throughput, turnaround time, waiting time, and
    _____
    time.
    Hint

    This final criterion measures time until a request first receives a response.

    Answer

    response

  86. 86
    A scheduling algorithm should keep the CPU in use as much as possible, thereby maximizing CPU
    _____
    .
    Hint

    This measure describes how much of the time the CPU is busy.

    Answer

    utilization

  87. 87
    A scheduling algorithm that completes more processes per unit time has higher
    _____
    .
    Hint

    This measure is a completion rate.

    Answer

    throughput

  88. 88
    If one scheduling algorithm has excellent average performance but occasionally behaves poorly, its
    _____
    -case behavior may still be a concern.
    Hint

    This refers to the least favorable outcome.

    Answer

    worst

  89. 89
    A scheduler can be designed to make performance more deterministic by controlling variation in its
    _____
    .
    Hint

    Examples include waiting time and response time.

    Answer

    measures

1 of 89
Question 1 of 89

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent