RTOS

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/79

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards summarizing essential terms and definitions from the RTOS Concepts for Embedded Systems lecture.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

80 Terms

1
New cards

Real-Time System

A system that produces a deterministic response to an external event within specified timing constraints.

2
New cards

Determinism

Property of a system whose behavior is predictable and repeatable for a given input.

3
New cards

Timing Constraint

A deadline by which a real-time task must start or finish to maintain system correctness.

4
New cards

Predictability

Ability to guarantee that timing requirements will always be met over the system’s lifetime.

5
New cards

Hard Real-Time System

A system in which missing a deadline constitutes total system failure.

6
New cards

Soft Real-Time System

A system that aims to meet deadlines but can tolerate occasional deadline misses.

7
New cards

Firm Real-Time System

System that must meet deadlines almost all the time; rare misses degrade quality but may not cause failure.

8
New cards

RTOS (Real-Time Operating System)

An operating system designed to guarantee deterministic task scheduling and interrupt handling.

9
New cards

GPOS (General-Purpose Operating System)

An OS optimized for throughput and user tasks rather than strict timing guarantees.

10
New cards

Super Loop

Bare-metal main loop structure that sequentially polls peripherals without preemption.

11
New cards

Preemptive Scheduling

A scheduling method that allows a higher-priority task to interrupt and replace a running task.

12
New cards

Non-Preemptive Scheduling

Scheduling in which a running task cannot be interrupted until it voluntarily yields or finishes.

13
New cards

Cooperative Scheduling

A non-preemptive model where tasks yield control explicitly, often via taskYield() calls.

14
New cards

Task (Thread)

Basic unit of execution managed by an RTOS, with its own stack, context, and priority.

15
New cards

Task Priority

Numerical value indicating a task’s importance; higher priority tasks preempt lower ones.

16
New cards

Task Control Block (TCB)

Data structure that stores a task’s context, state, priority, and stack pointers.

17
New cards

Dormant State

Initial or terminated state in which a task is not yet part of the scheduler’s ready pool.

18
New cards

Ready State

State where a task is prepared to run and waiting for CPU availability.

19
New cards

Running State

The state of the task that currently owns the CPU on a single core.

20
New cards

Blocked / Waiting State

State where a task is paused until an event such as semaphore give, message arrival, or time delay occurs.

21
New cards

Suspended State

State in which a task is removed from scheduling until explicitly resumed.

22
New cards

Context Switch

Process of saving the current task context and restoring another task’s context.

23
New cards

PendSV

Lowest-priority Cortex-M exception used by FreeRTOS to perform context switches safely after ISRs.

24
New cards

MSP (Main Stack Pointer)

Stack pointer used for system/interrupt context on ARM Cortex-M devices.

25
New cards

PSP (Process Stack Pointer)

Stack pointer used for task-level code in Cortex-M RTOS implementations.

26
New cards

ISR (Interrupt Service Routine)

Callback routine executed in response to a hardware interrupt.

27
New cards

Interrupt Latency

Time from interrupt assertion to execution of the first instruction of its ISR.

28
New cards

Jitter

Variation in interrupt latency (or task response time) over multiple occurrences.

29
New cards

Deferred Interrupt Handling

Technique where an ISR unblocks a task so heavy processing occurs at task level instead of inside ISR.

30
New cards

Foreground / Background System

Architecture where ISRs handle urgent work (foreground) and tasks process data later (background).

31
New cards

Task-Level Response

Delay experienced from interrupt completion to task processing of the associated data.

32
New cards

Kernel

Core component of an RTOS providing scheduling, synchronization, timing, and memory services.

33
New cards

Scheduler

Kernel module that decides which task runs next based on priorities and states.

34
New cards

Schedulable Entity

Object (task or process) eligible for CPU time under the scheduler.

35
New cards

Semaphore

Kernel object used to signal and synchronize access to shared resources via a counter.

36
New cards

Binary Semaphore

Semaphore with count 0 or 1, often used as a simple event signal.

37
New cards

Counting Semaphore

Semaphore whose count can exceed 1, allowing multiple simultaneous resource accesses.

38
New cards

Mutex

Mutual-exclusion lock that grants exclusive access to a critical section and supports ownership.

39
New cards

Priority Inheritance

Protocol that temporarily raises a low-priority task’s priority when it holds a mutex needed by a higher-priority task.

40
New cards

Priority Inversion

Situation where a high-priority task is blocked by a lower-priority task holding a required resource.

41
New cards

Critical Section

Code region that must not be interrupted to prevent data corruption; often protected by disabling interrupts or using mutexes.

42
New cards

Reentrant Function

Function that can be safely interrupted and re-entered by concurrent execution without corrupting data.

43
New cards

Queue

FIFO kernel object enabling safe data transfer between tasks or ISRs and tasks.

44
New cards

Message Queue

Queue variant designed to pass fixed-size messages between tasks.

45
New cards

Mailbox

Message queue with length one, allowing single-message overwriting behavior.

46
New cards

Pipe

Kernel object enabling unstructured byte-stream exchange and synchronization among tasks.

47
New cards

Direct Task Notification

Lightweight RTOS feature that lets one task or ISR send a 32-bit value or signal directly to another task without a separate object.

48
New cards

Software Timer

Timer implemented by the RTOS that invokes a callback after a specified period using a shared timer task.

49
New cards

System Tick

Periodic interrupt that drives the RTOS time base and task delays; often 1 ms in FreeRTOS.

50
New cards

Heap_1

FreeRTOS heap scheme that supports allocation only—no freeing—for maximum determinism.

51
New cards

Heap_2

Heap scheme allowing malloc and free but without coalescing adjacent free blocks.

52
New cards

Heap_3

Wrapper around the C library’s malloc/free to provide thread-safe allocation.

53
New cards

Heap_4

FreeRTOS heap that supports allocation, free, and block coalescing for flexible dynamic memory use.

54
New cards

Heap_5

Heap implementation enabling a single logical heap spread across multiple non-contiguous memory regions.

55
New cards

Memory Management

RTOS services that allocate, free, and track RAM for stacks, queues, and other kernel objects.

56
New cards

Task Partitioning

Dividing application work into separate tasks that can be scheduled independently.

57
New cards

Time Slice (Tick)

Fixed scheduler interval after which tasks of equal priority are rotated in round-robin fashion.

58
New cards

Deadline

Latest time by which a real-time task must complete its execution.

59
New cards

Periodicity

Time interval between successive activations of a periodic task.

60
New cards

Computation Time (Ci)

Worst-case processor time required for a task to execute to completion.

61
New cards

Processor Utilization Factor (U)

Sum of Ci/Ti for all tasks, representing fraction of CPU time demanded.

62
New cards

Schedulability Analysis

Process of verifying that all tasks can meet deadlines under a given scheduling algorithm.

63
New cards

Worst-Case Execution Time (WCET)

Maximum time a task can take to execute on a specific hardware platform.

64
New cards

Static Scheduling

Scheduling based on a precomputed, repeating timetable created offline.

65
New cards

Dynamic Scheduling

Scheduling where priorities and execution order are decided at runtime.

66
New cards

Fixed Priority

Priority assignment that remains constant throughout task execution (e.g., Rate Monotonic).

67
New cards

Dynamic Priority

Priority that can change during runtime based on rules like earliest deadline (EDF).

68
New cards

Rate Monotonic Scheduling (RMS)

Fixed-priority algorithm where tasks with shorter periods get higher priorities.

69
New cards

Earliest Deadline First (EDF)

Dynamic-priority algorithm that always selects the task with the nearest absolute deadline.

70
New cards

Deadline Monotonic Scheduling (DMS)

Fixed-priority algorithm assigning higher priority to tasks with shorter relative deadlines.

71
New cards

Liu-Layland Bound

Utilization threshold (m·(2^{1/m}−1)) below which a task set is guaranteed schedulable under RMS.

72
New cards

Slack Time

Unused processor time that can be allocated to lower-priority tasks without jeopardizing deadlines.

73
New cards

Fault Tolerance

Capability of a system to continue correct operation despite hardware or software faults.

74
New cards

ISO 26262

Automotive functional-safety standard guiding fault tolerance and hazard mitigation in real-time systems.

75
New cards

Segger SystemView

Real-time tracing tool that provides RTOS-aware insights into task execution and timing behavior.

76
New cards

Interrupt Storm

Condition where a large number of interrupts occur in rapid succession, potentially increasing latency and causing hangs.

77
New cards

Utility Function (Hard RTS)

Binary measure (1 for deadline met, 0 for deadline missed) representing task success in hard real-time systems.

78
New cards

Lateness

Difference between completion time and deadline of a task (positive if late).

79
New cards

Tardiness

Max(0, Lateness); positive lateness value, zero if deadline met.

80
New cards

Earliness

Max(−Lateness, 0); amount by which a task finishes before its deadline.