1. Home
  2. Explore
  3. Computer Science
  4. CPU Scheduling Concepts

Study methods

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

CPU Scheduling Concepts

  • 58Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Scheduling Basics
The operating-system component that decides which process gets CPU time is the
.

58 questions

  1. 1
    The operating-system component that decides which process gets CPU time is the
    _____
    .
    Hint

    It makes the decision that the dispatcher later carries out.

    Answer

    scheduler

  2. 2
    On a system with multiple CPUs, the scheduler decides which process gets which CPU and
    _____
    .
    Hint

    The decision includes both processor assignment and duration.

    Answer

    for how long

  3. 3
    To introduce key scheduling concepts before studying systems with several processors, the discussion initially assumes
    _____
    .
    Hint

    This is the simpler processor configuration.

    Answer

    a single CPU

  4. 4
    Scheduling across systems with multiple processors is called
    _____
    .
    Hint

    The term combines scheduling with the use of multiple processors.

    Answer

    multiprocessor scheduling

  5. 5
    A CPU burst consists of operations that do not involve I/O or system calls requesting a service from
    _____
    .
    Hint

    These are operations that do not require operating-system intervention.

    Answer

    the system

  6. 6
    Arithmetic operations such as addition and multiplication are considered
    _____
    operations during a burst.
    Hint

    They execute as part of the processor's work rather than requesting I/O.

    Answer

    CPU

  7. 7
    Even though they access memory, load and store instructions count as
    _____
    operations from the operating system's point of view.
    Hint

    The operating system counts the time while the process has the processor, even if memory is doing some of the work.

    Answer

    CPU

  8. 8
    A process reading from a file or keyboard requires operating-system intervention through a
    _____
    .
    Hint

    This is how a process requests a service from the operating system.

    Answer

    system call

  9. 9
    When a process requests I/O, the request marks the end of its current
    _____
    .
    Hint

    It is the period of operations that do not involve I/O.

    Answer

    CPU burst

  10. 10
    After an I/O request ends a CPU burst, the process begins an
    _____
    while the I/O service is performed.
    Hint

    This period corresponds to the requested input or output activity.

    Answer

    I/O burst

  11. 11
    While its requested I/O service is incomplete, a process is in the
    _____
    state.
    Hint

    It cannot continue until the I/O finishes.

    Answer

    waiting

  12. 12
    When I/O completes, a process moves from waiting to the
    _____
    state, rather than immediately receiving the CPU.
    Hint

    It is eligible to run but must still be chosen by the scheduler.

    Answer

    ready

  13. 13
    A process executing operations in a CPU burst, including memory operations, is in the
    _____
    state.
    Hint

    This state means the process currently has the CPU.

    Answer

    running

  14. 14
    If a load or store stalls the CPU while the process still has the processor, the time is counted as
    _____
    for that process.
    Hint

    The operating system counts the interval based on which process has the CPU.

    Answer

    CPU time

  15. 15
    Unlike time spent on a memory operation while the process has the CPU, time spent waiting for I/O is not
    _____
    .
    Hint

    This is the type of time the operating system attributes to a process that has the processor.

    Answer

    CPU time

  16. 16
    In a CPU-burst distribution histogram, the horizontal axis represents burst
    _____
    .
    Hint

    It shows how long each burst lasts.

    Answer

    duration

  17. 17
    In a CPU-burst distribution histogram, the vertical axis represents how
    _____
    each burst length occurs.
    Hint

    It indicates the frequency of occurrence.

    Answer

    frequently

  18. 18
    The most common CPU burst length described in the distribution is about
    _____
    .
    Hint

    It is the shorter, frequently occurring duration mentioned in the example.

    Answer

    two milliseconds

  19. 19
    CPU bursts longer than
    _____
    are described as rare.
    Hint

    This is the duration beyond which bursts are unusual in the example.

    Answer

    eight milliseconds

  20. 20
    Long CPU bursts are uncommon largely because processes often request
    _____
    before running for that long.
    Hint

    Reading input or files and writing output are examples.

    Answer

    I/O

  21. 21
    A processor running at one gigahertz performs about
    _____
    cycles per second.
    Hint

    One giga represents a billion.

    Answer

    one billion

  22. 22
    In the example, an add operation takes about one cycle, while a multiply takes
    _____
    cycles.
    Hint

    It takes more than the single cycle attributed to addition, but not hundreds.

    Answer

    a few

  23. 23
    A load that misses in cache and must access main memory can take up to
    _____
    cycles.
    Hint

    It takes substantially longer than a simple arithmetic operation.

    Answer

    hundreds of

  24. 24
    The example uses about
    _____
    cycles per operation as a reasonable average for estimating operation counts.
    Hint

    The speaker describes this estimate as somewhat short, while 100 is too long.

    Answer

    10

  25. 25
    The short-term scheduler selects a process from the
    _____
    and gives it the CPU.
    Hint

    This holds processes that are eligible to run.

    Answer

    ready queue

  26. 26
    In operating-system terminology, the ready queue is not necessarily implemented as a literal
    _____
    .
    Hint

    The name does not require a specific underlying data structure.

    Answer

    queue

  27. 27
    A ready queue may be implemented using any suitable data structure, such as a FIFO queue, priority queue, or
    _____
    .
    Hint

    It is a hierarchical data structure listed alongside queue implementations.

    Answer

    tree

  28. 28
    Modern operating systems commonly assign processes a
    _____
    that can influence scheduling.
    Hint

    It helps determine which process should be selected first.

    Answer

    priority

  29. 29
    Realistic scheduling algorithms are described as being
    _____
    .
    Hint

    They use the process ranking that modern operating systems maintain.

    Answer

    priority-based

  30. 30
    Because priority-based scheduling organizes processes by priority, a ready queue may be implemented with a priority queue or a
    _____
    .
    Hint

    This alternative can also organize data by priority.

    Answer

    tree

  31. 31
    When a running process requests I/O, a scheduling decision is needed as it switches from running to
    _____
    .
    Hint

    The process enters this state while its I/O service is incomplete.

    Answer

    waiting

  32. 32
    When a timer interrupt takes the CPU from a running process, that process switches from running to
    _____
    .
    Hint

    The interrupted process remains eligible to run again.

    Answer

    ready

  33. 33
    Taking the CPU from a running process by interrupting it is called
    _____
    scheduling.
    Hint

    This scheduling model allows the system to interrupt a process.

    Answer

    preemptive

  34. 34
    An operating system needs a hardware
    _____
    to interrupt a process and implement preemptive scheduling.
    Hint

    It can generate the interrupt that limits how long a process runs.

    Answer

    timer

  35. 35
    In non-preemptive scheduling, a process keeps the CPU until it
    _____
    it.
    Hint

    The process must give up the CPU itself rather than being interrupted.

    Answer

    releases

  36. 36
    Besides a running-to-waiting or running-to-ready transition, a scheduling decision can occur when a process switches from waiting to
    _____
    .
    Hint

    This transition commonly follows completion of I/O.

    Answer

    ready

  37. 37
    A process
    _____
    is another event at which the system may make a scheduling decision.
    Hint

    This event occurs when the process finishes.

    Answer

    termination

  38. 38
    The operating-system component that carries out a scheduler's CPU-allocation decision is the
    _____
    .
    Hint

    It implements the decision rather than choosing the process.

    Answer

    dispatcher

  39. 39
    During a context switch, the dispatcher saves the state of the process that lost the CPU and
    _____
    the state of the process about to run.
    Hint

    It returns the incoming process to its saved execution state.

    Answer

    restores

  40. 40
    Before a user process runs, the dispatcher must switch the processor to
    _____
    mode.
    Hint

    This mode prevents the process from having kernel-level privileges.

    Answer

    user

  41. 41
    After restoring a process's state, the dispatcher transfers control to the proper
    _____
    in the process.
    Hint

    It is where the process should resume execution.

    Answer

    location

  42. 42
    The time required for the dispatcher to perform its work is called
    _____
    .
    Hint

    It measures the delay involved in carrying out a scheduling decision.

    Answer

    dispatch latency

  43. 43
    The proportion of time the CPU is busy is measured by CPU
    _____
    .
    Hint

    It is a scheduling criterion that the system generally seeks to increase.

    Answer

    utilization

  44. 44
    The number of operations completed within a specified time period is the system's
    _____
    .
    Hint

    It measures completed work per interval.

    Answer

    throughput

  45. 45
    The time from a task's submission to its completion is its
    _____
    .
    Hint

    It covers the task's total time from start to finish.

    Answer

    turnaround time

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

    It measures time eligible to run but not yet given the CPU.

    Answer

    waiting time

  47. 47
    The time between a task's submission and the system's first response is its
    _____
    .
    Hint

    It measures the delay until the user first sees a reaction.

    Answer

    response time

  48. 48
    When assessing scheduling algorithms in this chapter, the primary measure emphasized is average
    _____
    .
    Hint

    It averages how long processes remain in the ready queue.

    Answer

    waiting time

  49. 49
    Although average measures are commonly optimized, in some cases it can be useful to optimize the
    _____
    or maximum value.
    Hint

    It is the other endpoint considered alongside the maximum.

    Answer

    minimum

  50. 50
    Minimizing the maximum response time can help make a system more
    _____
    .
    Hint

    This quality describes a system that responds promptly to users.

    Answer

    interactive

  51. 51
    Reducing the time quantum generally improves response time because more processes can make progress
    _____
    .
    Hint

    They get opportunities to run during overlapping periods rather than one process running for a long stretch.

    Answer

    concurrently

  52. 52
    A shorter time quantum can make a system feel more
    _____
    to its users.
    Hint

    Users receive earlier indications that their processes are making progress.

    Answer

    responsive

  53. 53
    A shorter time quantum can increase turnaround time because it causes more frequent
    _____
    .
    Hint

    The kernel must save and restore process states more often.

    Answer

    context switching

  54. 54
    Because context switching uses time that could otherwise do useful work, a shorter time quantum can reduce
    _____
    .
    Hint

    This criterion counts completed work over a period of time.

    Answer

    throughput

  55. 55
    The extra time spent on context switching with a very short time quantum can lead to poor resource
    _____
    .
    Hint

    It concerns how efficiently the system uses its resources.

    Answer

    utilization

  56. 56
    Choosing a time quantum requires balancing user requirements against
    _____
    requirements.
    Hint

    These requirements include using resources efficiently.

    Answer

    system

  57. 57
    A time quantum that is too short may improve responsiveness while making the system's resource use
    _____
    .
    Hint

    The increased context-switching overhead works against efficient use.

    Answer

    inefficient

  58. 58
    The effect of a scheduling change that improves one criterion but harms another is a
    _____
    .
    Hint

    It requires balancing competing outcomes.

    Answer

    tradeoff

1 of 58
Question 1 of 58

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent