RTOS Keywords with Definitions
Comprehensive Overview for
Learning RTOS
RTOS (Real-Time Operating System)
• An operating system designed to process data
and events within a strict time deadline, used
in embedded and time-critical systems.
Task/Thread
• A basic unit of execution in RTOS. Multiple
tasks can run concurrently and independently.
Task Scheduling
• The method by which an RTOS decides the
order in which tasks are executed.
Preemptive Scheduling
• A scheduling method where the highest-
priority task is executed by interrupting the
currently running lower-priority task.
Cooperative Scheduling
• Tasks voluntarily give up control to allow other
tasks to run.
Context Switching
• The process of saving and loading task states
during switching between tasks.
Multitasking
• Running multiple tasks seemingly in parallel by
switching between them rapidly.
Priority
• A value assigned to tasks; higher-priority tasks
are executed before lower-priority ones.
Interrupt
• A signal that temporarily halts the CPU to
handle an event (e.g., I/O or timer).
ISR (Interrupt Service Routine)
• The function executed in response to an
interrupt.
Semaphore
• A signaling mechanism used for task
synchronization or resource management.
Mutex (Mutual Exclusion)
• A locking mechanism used to prevent multiple
tasks from accessing a shared resource
simultaneously.
Deadlock
• A condition where tasks wait indefinitely for
resources held by each other.
Starvation
• A task fails to get CPU time or resources
because higher-priority tasks keep running.
Latency
• The time taken by the system to respond to an
event.
Jitter
• Variation in response time to the same event
under the same conditions.
Kernel
• The core part of RTOS that manages task
scheduling, interrupts, and system resources.
Tick Timer
• A periodic timer interrupt used by the RTOS
scheduler to track time and manage
delays/timeouts.
Message Queue
• An RTOS service that enables tasks to send
and receive data/messages in a queued
manner.
Event Flags
• A synchronization mechanism where tasks
wait for a specific set of flags to be set.
Critical Section
• A code segment that must not be interrupted
to prevent data corruption.
Watchdog Timer
• A timer that resets the system if software fails
to operate correctly.
Real-Time Clock (RTC)
• A clock module used to keep track of the
current time in real-world terms.
Embedded System
• A dedicated system that performs a specific
function within a larger system, often with
real-time constraints.
Determinism
• The ability of the system to perform
operations within a known time frame.
Memory Management
• The process of managing memory allocation
and deallocation for tasks.
Thread-safe
• Describes code or functions that operate
correctly when multiple threads access them
simultaneously.
Spinlock
• A type of lock where the processor
continuously checks for the lock to become
available, wasting CPU cycles.
Idle Task
• A default low-priority task that runs when no
other tasks are ready to execute.
Task State
• The current status of a task (e.g., ready,
running, blocked, suspended).
Blocked State
• A task is waiting for an event or resource and
is not ready to run.
Ready State
• A task is ready to run but waiting for CPU
time.
Running State
• A task that is currently being executed by the
CPU.
Suspended State
• A task that is paused and will not run until
explicitly resumed.
Heap Memory
• Dynamically allocated memory during
runtime.
Stack Memory
• Memory used by tasks for function calls and
local variables.
Stack Overflow
• Occurs when a task uses more stack memory
than allocated, leading to unpredictable
behavior or crashes.
Inter-task Communication (ITC)
• Mechanisms for tasks to communicate and
synchronize (e.g., queues, semaphores, pipes).
Signal
• A notification or flag sent between tasks or
from an ISR to a task.
Scheduler
• The RTOS component that selects which task
to run based on scheduling policy.
Round Robin Scheduling
• Each task gets an equal time slice to execute in
a cyclic order.
Time Slice
• A fixed amount of time given to a task in
round-robin scheduling.
Dynamic Priority
• Task priorities that can change at runtime
based on system conditions.
Static Priority
• Priorities assigned at compile time and do not
change during execution.
Rate Monotonic Scheduling (RMS)
• A fixed-priority scheduling algorithm where
shorter period tasks have higher priority.
Earliest Deadline First (EDF)
• A dynamic scheduling algorithm where the
task with the closest deadline is scheduled
first.
Hard Real-Time System
• A system where missing a deadline is
considered a total system failure.
Soft Real-Time System
• A system where deadline misses are tolerable
but degrade performance.
Memory Protection Unit (MPU)
• Hardware that restricts access to certain
memory areas to improve safety and security.
RTOS Tick
• A periodic interrupt (typically from a timer)
that drives the RTOS timekeeping and
scheduling.
Hook Function
• User-defined functions called at specific points
in the RTOS kernel (e.g., task creation,
deletion).
Scheduler Locking
• Temporarily disables context switching to
prevent race conditions.
Nested Interrupts
• When an interrupt can itself be interrupted by
a higher-priority interrupt.
Reentrant Function
• A function that can be safely called by multiple
tasks or interrupts simultaneously.
Thread
• A lightweight process; often used
interchangeably with task in many RTOSes.
RTOS Porting
• Adapting the RTOS to run on a different
processor or hardware platform.
System Call
• A request made by a program to the RTOS
kernel for services (e.g., creating a task).
Bootloader
• A small program that initializes the hardware
and loads the RTOS or main firmware.
RTOS API
• A set of functions provided by the RTOS for
tasks, timing, communication, etc.

Real Time Operating Systems Basic Definitions