Real-Time Systems and Scheduling
- 100Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
100 questions
- 1A 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
- 2In 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
- 3The ability to estimate how long each task or job takes is called_____.
Hint
This property concerns whether execution behavior can be anticipated.
Answer
predictability
- 4A 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
- 5In 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
- 6In 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
- 7In 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
- 8Computer 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
- 9A 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
- 10Cruise 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
- 11Electronic 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
- 12Real-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
- 13Unlike 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
- 14A 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
- 15One 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
- 16The 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
- 17A 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
- 18In 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
- 19General-purpose multitasking and scheduling often focus on maximizing_____.
Hint
This measures how much work the system completes over time.
Answer
throughput
- 20System 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
- 21General-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
- 22When 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
- 23A 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
- 24When 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
- 25DMA 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
- 26One 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
- 27Bus 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
- 28Caches 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
- 29Caches 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
- 30When 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
- 31One 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
- 32In 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
- 33If 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
- 34System 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
- 35Interrupts are asynchronous because they are triggered by external_____.
Hint
They can occur independently of the currently running task's request.
Answer
events
- 36Making 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
- 37One proposed interrupt strategy disables all interrupts except the_____interrupt, which is retained to schedule tasks.
Hint
This interrupt supports periodic scheduling.
Answer
timer
- 38Under 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
- 39A 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
- 40A 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
- 41Putting 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
- 42A 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
- 43In 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
- 44A 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
- 45A 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
- 46In 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
- 47In 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
- 48Compared 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
- 49Real-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
- 50A process's separate virtual address space provides process_____.
Hint
Separate address spaces help prevent processes from interfering with one another's memory.
Answer
protection
- 51The 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
- 52Hardware caches recent virtual-to-physical address mappings in a Translation Lookaside Buffer, or_____.
Hint
This is the abbreviation for the translation cache.
Answer
TLB
- 53A 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
- 54Because 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
- 55One 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
- 56Virtual 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
- 57Paging 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
- 58When 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
- 59To 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
- 60Dynamic 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
- 61When 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
- 62Moving 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
- 63Allocating 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
- 64Many 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
- 65Recursion 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
- 66The 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
- 67General-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
- 68A 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
- 69The 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
- 70A periodic task's hard relative deadline is usually no greater than its_____.
Hint
The next job arrives after this recurring interval.
Answer
period
- 71If 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
- 72A 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
- 73For 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
- 74A 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
- 75A 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
- 76In 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
- 77In 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
- 78In fully dynamic scheduling, a job's priority may change over_____.
Hint
Unlike ordinary dynamic scheduling, the priority is not fixed after assignment.
Answer
time
- 79A schedule is feasible if all tasks meet their_____.
Hint
Feasibility is defined by whether the required time limits are satisfied.
Answer
deadlines
- 80A 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
- 81A 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
- 82Rate-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
- 83Rate-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
- 84Rate-monotonic scheduling is optimal with respect to the class of_____schedulers.
Hint
Its optimality does not claim superiority over dynamic scheduling classes.
Answer
static
- 85In 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
- 86In 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
- 87Rate-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
- 88The rate-monotonic utilization bound for N periodic tasks is 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
- 89As the number of tasks increases, the rate-monotonic utilization bound_____.
Hint
The guaranteed utilization fraction becomes smaller for larger task sets.
Answer
decreases
- 90If 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
- 91In the lecture's three-task example, total utilization is about 0.98, which exceeds the bound of about 0.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
- 92Earliest deadline first assigns higher priority to the job with the_____deadline.
Hint
The job whose time limit arrives soonest is selected first.
Answer
earliest
- 93Earliest 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
- 94EDF is optimal with respect to all_____schedulers considered in the lecture.
Hint
The comparison excludes schedules planned entirely in advance.
Answer
online
- 95If 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
- 96When 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
- 97In 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
- 98If 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
- 99A 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
- 100The 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

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