Книга: Advanced PIC Microcontroller Projects in C

10.2 The Real-Time Operating System (RTOS)

Real-time operating systems are built around a multi-tasking kernel which controls the allocation of time slices to tasks. A time slice is the period of time a given task has for execution before it is stopped and replaced by another task. This process, also known as context switching, repeats continuously. When context switching occurs, the executing task is stopped, the processor registers are saved in memory, the processor registers of the next available task are loaded into the CPU, and the new task begins execution. An RTOS also provides task-to-task message passing, synchronization of tasks, and allocation of shared resources to tasks.

The basic parts of an RTOS are:

• Scheduler

• RTOS services

• Synchronization and messaging tools

Оглавление книги

Оглавление статьи/книги

Генерация: 1.026. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз