1. Home
  2. Explore
  3. Computer Science
  4. Real-Time Systems and Scheduling

Study methods

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

Real-Time Systems and Scheduling

  • 100Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Real-Time Foundations
A real-time system is characterized by both its functional aspect and its
aspect.

100 questions

  1. 1
    A real-time system is characterized by both its functional aspect and its
    _____
    aspect.
    Hint

    Think about the system's deadlines and time constraints.

    Answer

    temporal

  2. 2
    In real-time systems, performance is judged primarily by whether each individual task meets its
    _____
    .
    Hint

    The key concern is not average response time but whether a required time limit is met.

    Answer

    deadline

  3. 3
    The ability to estimate how long each task or job takes is called
    _____
    .
    Hint

    This property concerns whether execution behavior can be anticipated.

    Answer

    predictability

  4. 4
    A system may have high performance yet lack
    _____
    if its execution behavior cannot be anticipated.
    Hint

    Being fast and being consistently estimable are different properties.

    Answer

    predictability

  5. 5
    In a soft real-time system, missing a deadline reduces the task's value, which then diminishes
    _____
    as lateness increases.
    Hint

    The value falls at a constant rate after the deadline in the described model.

    Answer

    linearly

  6. 6
    In a firm real-time system, a task completed after its deadline has
    _____
    value.
    Hint

    Unlike a soft real-time task, late completion provides no benefit in this model.

    Answer

    zero

  7. 7
    In a hard real-time system, missing a deadline can lead to a negative
    _____
    because of the consequences of lateness.
    Hint

    The model assigns a penalty rather than merely reducing the task's value to zero.

    Answer

    utility

  8. 8
    Computer simulations with no strict time limit are generally considered
    _____
    real-time systems.
    Hint

    Consider whether simulations usually have deadlines whose violation causes serious consequences.

    Answer

    not

  9. 9
    A user interface is an example where responsiveness matters, but an occasional slow response is usually not a major consequence; it is therefore closer to a
    _____
    real-time system.
    Hint

    A missed time target reduces quality but does not usually cause a catastrophe.

    Answer

    soft

  10. 10
    Cruise control is used as an example of a
    _____
    real-time system.
    Hint

    Its timing matters, but a missed deadline does not generally have the same consequences as failure of flight control.

    Answer

    soft

  11. 11
    Electronic engine control and flight control are examples of
    _____
    real-time systems because missing deadlines can endanger lives.
    Hint

    This category assigns serious negative consequences to missed deadlines.

    Answer

    hard

  12. 12
    Real-time systems can be viewed on a spectrum ranging from non-real-time systems to
    _____
    real-time systems.
    Hint

    This is the strictest end of the spectrum described.

    Answer

    hard

  13. 13
    Unlike general-purpose operating systems, which often emphasize throughput, real-time operating systems emphasize
    _____
    and deadline guarantees.
    Hint

    This is the recurring quality that lets the system reason about timing.

    Answer

    predictability

  14. 14
    A real-time operating system should provide proofs or guarantees that tasks meet deadlines when specified
    _____
    are satisfied.
    Hint

    For example, a guarantee may depend on the system not being overloaded.

    Answer

    criteria

  15. 15
    One example of a condition used to reason about deadline guarantees is that system utilization is less than
    _____
    .
    Hint

    The system must not be overutilized under this example condition.

    Answer

    one

  16. 16
    The ability of a real-time operating system to handle task time constraints is called
    _____
    .
    Hint

    This property directly concerns responding within required time limits.

    Answer

    timeliness

  17. 17
    A real-time system should isolate a fault so that a fault in one component does not
    _____
    the entire system.
    Hint

    Fault tolerance aims to prevent a local failure from causing a system-wide failure.

    Answer

    crash

  18. 18
    In addition to predictability, timeliness, and fault tolerance, real-time systems should account for peak load and
    _____
    .
    Hint

    This property concerns how readily the system can be maintained.

    Answer

    maintainability

  19. 19
    General-purpose multitasking and scheduling often focus on maximizing
    _____
    .
    Hint

    This measures how much work the system completes over time.

    Answer

    throughput

  20. 20
    System calls can be detrimental to real-time systems because their execution may interfere with meeting
    _____
    .
    Hint

    A long system call can prevent urgent work from running in time.

    Answer

    deadlines

  21. 21
    General-purpose interrupt handling may give interrupt handlers very high priority, potentially delaying a hard real-time
    _____
    .
    Hint

    The delayed work may be a deadline-sensitive activity such as engine or flight control.

    Answer

    task

  22. 22
    When a high-priority task waits for a lower-priority task holding a shared lock, the problem is called priority
    _____
    .
    Hint

    The observed waiting order conflicts with the tasks' priority order.

    Answer

    inversion

  23. 23
    A real-time system must consider task priorities so that urgent tasks do not wait unnecessarily for tasks with more distant
    _____
    .
    Hint

    These time limits indicate when the less urgent tasks must finish.

    Answer

    deadlines

  24. 24
    When CPU and I/O devices share a memory bus, heavy device traffic can
    _____
    the CPU by occupying the shared bus.
    Hint

    The CPU may be unable to access memory as quickly while devices use the bus.

    Answer

    slow down

  25. 25
    DMA allows an I/O device to transfer data without the
    _____
    being involved in each transfer.
    Hint

    DMA delegates the data-transfer work to the device.

    Answer

    CPU

  26. 26
    One way to make CPU access to a shared memory bus more predictable is to divide bus access into
    _____
    .
    Hint

    This applies a time-sharing idea similar to giving tasks time quanta.

    Answer

    time slices

  27. 27
    Bus time slicing improves predictability by providing the CPU with a known minimum share of the
    _____
    bus.
    Hint

    This is the bus shared by the CPU and I/O devices to communicate with memory.

    Answer

    memory

  28. 28
    Caches speed up memory operations by keeping previously accessed data close to the
    _____
    .
    Hint

    The data is placed near the component that needs to access it.

    Answer

    processor

  29. 29
    Caches complicate real-time timing because whether a requested item is cached or not can introduce
    _____
    .
    Hint

    A cache hit and a cache miss have different access times.

    Answer

    nondeterminism

  30. 30
    When a requested data block is absent from the cache, the processor must fetch it from
    _____
    .
    Hint

    This takes longer than accessing data already in the cache.

    Answer

    memory

  31. 31
    One approach to eliminating cache-related timing variation in a real-time system is to avoid using
    _____
    .
    Hint

    This approach removes the source of hit-versus-miss timing differences.

    Answer

    caches

  32. 32
    In the described general-purpose system-call design, interrupts are disabled while a system-call handler runs, making the handler
    _____
    .
    Hint

    The handler cannot be interrupted by another interrupt during this interval.

    Answer

    non-preemptive

  33. 33
    If a long non-preemptive system call blocks interrupts, a newly arrived high-priority task may be unable to reclaim the
    _____
    .
    Hint

    The urgent task needs this resource to run.

    Answer

    processor

  34. 34
    System calls are synchronous because they are initiated by the currently running
    _____
    .
    Hint

    They are requested directly by the execution that needs an operating-system service.

    Answer

    process

  35. 35
    Interrupts are asynchronous because they are triggered by external
    _____
    .
    Hint

    They can occur independently of the currently running task's request.

    Answer

    events

  36. 36
    Making interrupt handlers preemptible without restriction can cause later interrupts to preempt earlier ones repeatedly, potentially preventing the first interrupt from being
    _____
    .
    Hint

    The concern is that nested arrivals may stop the original interrupt's work from completing.

    Answer

    handled

  37. 37
    One proposed interrupt strategy disables all interrupts except the
    _____
    interrupt, which is retained to schedule tasks.
    Hint

    This interrupt supports periodic scheduling.

    Answer

    timer

  38. 38
    Under the first interrupt strategy, each task that needs I/O handles its own device interaction by
    _____
    the device.
    Hint

    The task repeatedly checks the device rather than relying on device interrupts.

    Answer

    polling

  39. 39
    A benefit of task-level polling is that the task's data-transfer timing can be estimated more
    _____
    .
    Hint

    The task controls when it checks the device instead of being interrupted unpredictably.

    Answer

    precisely

  40. 40
    A drawback of task-level polling is wasted CPU time, especially when I/O events are
    _____
    .
    Hint

    Repeated checks use time even when there is no new device activity.

    Answer

    infrequent

  41. 41
    Putting device logic inside every task makes adding or changing a device require changes to many
    _____
    .
    Hint

    Each application that handles the device may need to be reprogrammed.

    Answer

    tasks

  42. 42
    A second interrupt strategy places device-polling routines in the
    _____
    rather than in every task.
    Hint

    This centralizes hardware-specific details in operating-system routines.

    Answer

    kernel

  43. 43
    In the second strategy, periodic kernel routines still use polling, so they still cause CPU
    _____
    .
    Hint

    The processor remains occupied checking for device activity.

    Answer

    waste

  44. 44
    A disadvantage of kernel-based device polling is that adding, removing, or upgrading a device may require modifying the
    _____
    .
    Hint

    The device routines have been centralized there.

    Answer

    kernel

  45. 45
    A third interrupt strategy enables interrupts but keeps interrupt handlers and device drivers as
    _____
    as possible.
    Hint

    They should perform only the minimum work needed before delegating the rest.

    Answer

    lightweight

  46. 46
    In the third strategy, a lightweight handler responds to an interrupt by creating or waking a
    _____
    to handle the device work.
    Hint

    The operating system schedules this work like other units of execution.

    Answer

    task

  47. 47
    In the third strategy, device-driver tasks are handled by the scheduler like other tasks and can be assigned their own
    _____
    .
    Hint

    Their timing requirements are considered as part of ordinary task scheduling.

    Answer

    deadlines

  48. 48
    Compared with polling, enabling interrupts and using lightweight handlers eliminates
    _____
    waiting.
    Hint

    This kind of waiting wastes processor time by repeatedly checking for activity.

    Answer

    busy

  49. 49
    Real-time systems commonly use fixed-size pages for both virtual memory and
    _____
    memory.
    Hint

    Address translation maps pages from one address space into this memory.

    Answer

    physical

  50. 50
    A process's separate virtual address space provides process
    _____
    .
    Hint

    Separate address spaces help prevent processes from interfering with one another's memory.

    Answer

    protection

  51. 51
    The structure that records where virtual pages are located in physical memory is the
    _____
    .
    Hint

    It stores the mappings needed for address translation.

    Answer

    page table

  52. 52
    Hardware caches recent virtual-to-physical address mappings in a Translation Lookaside Buffer, or
    _____
    .
    Hint

    This is the abbreviation for the translation cache.

    Answer

    TLB

  53. 53
    A TLB hit makes address translation fast, while a TLB miss requires obtaining the mapping from
    _____
    .
    Hint

    The system must consult the stored page mappings when the translation is not cached.

    Answer

    memory

  54. 54
    Because TLB hits and misses take different amounts of time, the TLB can reduce timing
    _____
    .
    Hint

    The uncertainty concerns how long address translation will take.

    Answer

    predictability

  55. 55
    One way to avoid TLB-related translation variability is to avoid
    _____
    memory and use physical memory directly.
    Hint

    This removes the need to translate virtual addresses.

    Answer

    virtual

  56. 56
    Virtual memory can make a process's apparent memory space larger than the available
    _____
    memory.
    Hint

    This is the actual memory installed in the system.

    Answer

    physical

  57. 57
    Paging uses physical memory as a cache for pages stored on the
    _____
    .
    Hint

    This is the permanent storage used to hold pages that are not currently in memory.

    Answer

    disk

  58. 58
    When physical memory is full and a needed page is absent, the operating system may evict a page, write it to disk, and bring in the requested
    _____
    .
    Hint

    This is the unit moved between disk and physical memory.

    Answer

    page

  59. 59
    To prevent paging delays for a real-time task, its pages can be
    _____
    so the operating system will not evict them.
    Hint

    This marks the pages as unavailable for eviction.

    Answer

    pinned

  60. 60
    Dynamic memory allocation can have unpredictable execution time because allocation algorithms may need to search a free list using
    _____
    such as first fit or best fit.
    Hint

    These are rule-of-thumb strategies for selecting a memory region.

    Answer

    heuristics

  61. 61
    When free memory exists but is split into separated regions too small for a contiguous request, the problem is external
    _____
    .
    Hint

    The issue is the arrangement of free space, not necessarily the total amount.

    Answer

    fragmentation

  62. 62
    Moving allocated memory to combine free regions may be unsafe when the system cannot track all copies of a
    _____
    that point to the old location.
    Hint

    References to the moved block would become invalid if they were not updated.

    Answer

    pointer

  63. 63
    Allocating fixed-size blocks can prevent external fragmentation, but may waste unused space inside an allocated block, causing internal
    _____
    .
    Hint

    The wasted space is within the block assigned to a requester.

    Answer

    fragmentation

  64. 64
    Many real-time systems improve predictability by forbidding dynamic memory allocation and requiring memory to be
    _____
    allocated.
    Hint

    The memory is assigned in advance rather than requested dynamically during execution.

    Answer

    statically

  65. 65
    Recursion is difficult to analyze in real-time software when the number of recursive calls depends dynamically on input, because execution time may become
    _____
    .
    Hint

    Without a known recursion depth, there may be no reliable upper limit.

    Answer

    unbounded

  66. 66
    The lecture names
    _____
    Java as an example of a real-time programming language.
    Hint

    This version of Java is designed with real-time programming in mind.

    Answer

    real-time

  67. 67
    General-purpose scheduling often optimizes average system throughput, while real-time scheduling focuses on the worst-case response time of
    _____
    tasks.
    Hint

    Real-time analysis considers each task rather than only an overall average.

    Answer

    individual

  68. 68
    A periodic task consists of a set of jobs that arrive at a fixed
    _____
    .
    Hint

    This fixed interval determines how often the jobs recur.

    Answer

    period

  69. 69
    The worst-case execution time of a periodic task describes the maximum execution time of each of its
    _____
    .
    Hint

    These are the individual recurring instances of the task.

    Answer

    jobs

  70. 70
    A periodic task's hard relative deadline is usually no greater than its
    _____
    .
    Hint

    The next job arrives after this recurring interval.

    Answer

    period

  71. 71
    If a periodic task's relative deadline is not specified, it is assumed to equal the task's
    _____
    .
    Hint

    This is the default deadline interval described for periodic tasks.

    Answer

    period

  72. 72
    A task's utilization is its jobs' worst-case execution time divided by the task's
    _____
    .
    Hint

    Utilization compares required processing time with the interval between job arrivals.

    Answer

    period

  73. 73
    For a nonperiodic task with only one occurrence, the task and its
    _____
    are effectively the same instance.
    Hint

    This term names one particular execution instance of a task.

    Answer

    job

  74. 74
    A task that arrives randomly and has no hard deadline is called an
    _____
    task.
    Hint

    Its arrival pattern is not periodic, and its timing requirement is not hard.

    Answer

    aperiodic

  75. 75
    A task that arrives randomly but has a hard deadline is called a
    _____
    task.
    Hint

    It is not periodic, but its deadline remains hard.

    Answer

    sporadic

  76. 76
    In static scheduling, priorities are assigned to tasks and do not change over
    _____
    .
    Hint

    The priority remains fixed rather than being updated as execution proceeds.

    Answer

    time

  77. 77
    In dynamic scheduling, priorities are assigned to individual
    _____
    rather than to tasks.
    Hint

    Each arrival of a periodic task can be assigned its own priority.

    Answer

    jobs

  78. 78
    In fully dynamic scheduling, a job's priority may change over
    _____
    .
    Hint

    Unlike ordinary dynamic scheduling, the priority is not fixed after assignment.

    Answer

    time

  79. 79
    A schedule is feasible if all tasks meet their
    _____
    .
    Hint

    Feasibility is defined by whether the required time limits are satisfied.

    Answer

    deadlines

  80. 80
    A task set is schedulable under a scheduling class if some algorithm in that class produces a
    _____
    schedule for it.
    Hint

    All deadlines must be met in the resulting schedule.

    Answer

    feasible

  81. 81
    A scheduling algorithm is optimal with respect to a class if it produces feasible schedules for every task set that is schedulable within that
    _____
    .
    Hint

    Optimality compares the algorithm with the other algorithms in its designated group.

    Answer

    class

  82. 82
    Rate-monotonic scheduling is a static policy that assigns higher priority to tasks with
    _____
    periods.
    Hint

    A task that repeats more frequently receives higher priority.

    Answer

    shorter

  83. 83
    Rate-monotonic priorities are assigned to tasks rather than individual jobs because rate-monotonic scheduling is
    _____
    .
    Hint

    The assigned priority does not change over time.

    Answer

    static

  84. 84
    Rate-monotonic scheduling is optimal with respect to the class of
    _____
    schedulers.
    Hint

    Its optimality does not claim superiority over dynamic scheduling classes.

    Answer

    static

  85. 85
    In the lecture's example of periods two, five, and ten, task T1 receives the highest rate-monotonic priority because it has the
    _____
    period.
    Hint

    Rate-monotonic priority increases as the period decreases.

    Answer

    shortest

  86. 86
    In the same example, the schedule repeats after the tasks' periods align at their least common
    _____
    .
    Hint

    The schedule pattern repeats when time reaches the smallest shared multiple of the periods.

    Answer

    multiple

  87. 87
    Rate-monotonic scheduling is not guaranteed to succeed for every workload; it can cause a task to miss its
    _____
    .
    Hint

    A feasible schedule requires every task to finish by its required time.

    Answer

    deadline

  88. 88
    The rate-monotonic utilization bound for NNN periodic tasks is N(21/N−1)N(2^{1/N}-1)N(21/N−1); if total utilization is at or below this bound, the schedule is guaranteed to be
    _____
    .
    Hint

    The bound provides a sufficient condition for meeting all deadlines.

    Answer

    feasible

  89. 89
    As the number of tasks increases, the rate-monotonic utilization bound
    _____
    .
    Hint

    The guaranteed utilization fraction becomes smaller for larger task sets.

    Answer

    decreases

  90. 90
    If total utilization exceeds the rate-monotonic bound, the theorem provides no
    _____
    about whether the schedule will succeed.
    Hint

    Exceeding the sufficient bound does not prove that scheduling must fail.

    Answer

    guarantee

  91. 91
    In the lecture's three-task example, total utilization is about 0.980.980.98, which exceeds the bound of about 0.780.780.78; rate-monotonic scheduling therefore has no
    _____
    from that bound.
    Hint

    The utilization-bound test is sufficient, not a proof of failure when exceeded.

    Answer

    guarantee

  92. 92
    Earliest deadline first assigns higher priority to the job with the
    _____
    deadline.
    Hint

    The job whose time limit arrives soonest is selected first.

    Answer

    earliest

  93. 93
    Earliest deadline first is a dynamic scheduling policy because it assigns priorities to
    _____
    .
    Hint

    Different arrivals of the same task may have different deadlines and priorities.

    Answer

    jobs

  94. 94
    EDF is optimal with respect to all
    _____
    schedulers considered in the lecture.
    Hint

    The comparison excludes schedules planned entirely in advance.

    Answer

    online

  95. 95
    If an online scheduler can feasibly schedule a task set, EDF can also schedule it feasibly because EDF is
    _____
    for online schedulers.
    Hint

    This property means it succeeds on every task set schedulable by its comparison class.

    Answer

    optimal

  96. 96
    When comparing EDF with other schedulers, the lecture excludes offline scheduling because a precomputed schedule is not
    _____
    .
    Hint

    Offline scheduling relies on a fixed table rather than responding to arrivals as they occur.

    Answer

    dynamic

  97. 97
    In the example where rate-monotonic scheduling fails, EDF chooses between ready jobs by comparing their
    _____
    .
    Hint

    EDF uses this value to determine which job receives priority.

    Answer

    deadlines

  98. 98
    If a task set cannot be scheduled feasibly by any algorithm in a scheduling class, it is not schedulable under that
    _____
    .
    Hint

    Schedulability is always stated relative to a group of algorithms.

    Answer

    class

  99. 99
    A task set that is unschedulable under a class is excluded from that class's definition of
    _____
    .
    Hint

    Optimality compares performance only on task sets that some algorithm in the class can schedule.

    Answer

    optimality

  100. 100
    The key meaning of optimality is that if another algorithm in the same class can schedule a task set feasibly, the optimal algorithm can do so
    _____
    .
    Hint

    Optimality means matching every feasible capability of the class.

    Answer

    too

1 of 100
Question 1 of 100

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent