Книга: Real-Time Concepts for Embedded Systems

5.5 Typical Task Structure

When writing code for tasks, tasks are structured in one of two ways:

· run to completion, or

· endless loop.

Both task structures are relatively simple. Run-to-completion tasks are most useful for initialization and startup. They typically run once, when the system first powers on. Endless-loop tasks do the majority of the work in the application by handling inputs and outputs. Typically, they run many times while the system is powered on.

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

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