4-1
Chapter 4
Thread Scheduling
This chapter describes the types of threads a DSP/BIOS program can use,
their behavior, and their priorities during program execution.
4.1 Overview of Thread Scheduling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
4.2 Hardware Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-11
4.3 Software Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-25
4.4 Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-39
4.5 The Idle Loop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-49
4.6 Power Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-51
4.7 Semaphores. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-59
4.8 Mailboxes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-65
4.9 Timers, Interrupts, and the System Clock . . . . . . . . . . . . . . . . . . . . 4-71
4.10 Periodic Function Manager (PRD) and the System Clock. . . . . . . . 4-76
Topic Page