Slide 1 Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7 Slide 8 Slide 9 Slide 10 Slide 11 Slide 12 Slide 13 Product List
SYS/BIOS: Tasks Slide 4

As was mentioned earlier, tasks differ from software interrupts in a very fundamental way. Swis are threads that always run to completion. Although they can be preempted by higher priority Swis and by hardware interrupts, they cannot block themselves while waiting for an event. Additionally, they must be implemented in a way that allows them to exit. Tasks on the other hand are often implemented as an infinite loop, only exiting when the application as a whole is shutting down, or if the system resources are being changed in a fundamental way. When they need to wait for some kind of event to occur or resource to become available, they will block themselves using some kind of semaphore, which will be discussed later in this presentation.

PTM Published on: 2012-09-20