|
Real-Time Concepts for Embedded SystemsThe most common two algorithms are preemptive priority-based scheduling and round-robin scheduling. g RTOSes for real-time embedded systems should be reliable, predictable, high performance, compact, and scalable. Chapter 5: Tasks 5.1 Introduction Simple software applications are typically designed to run sequentially, one instruction at a time, in a pre-determined chain of instructions. However, this scheme is inappropriate for real-time embedded applications, which generally handle multiple inputs and outputs within tight time constraints. Real-time embedded software applications must be designed for concurrency. Concurrent design requires developers to decompose an application into small, schedulable, and sequential program units. When done correctly, concurrent design allows system multitasking to meet performance and timing requirements for a real-time system. Most RTOS kernels provide task objects and task management services to facilitate designing concurrency within an application. This chapter discusses the following topics: g task definition, g task states and scheduling, g typical task operations, g typical task structure, and g task coordination and concurrency. 5.2 Defining a Task A task is an independent thread of execution that can compete with other concurrent tasks for processor execution time ...» |
Код для вставки книги в блог HTML
phpBB
текст
|
|