на главную   |   А-Я   |   A-Z   |   меню


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.


5.4.3 Obtaining Task Information | Real-Time Concepts for Embedded Systems | 5.5.1 Run-to-Completion Tasks