Slide 1 Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7 Slide 8 Slide 9 Slide 10 Slide 11 Slide 12 Product List
RTOS and Software Interrupts Slide 6

Here is another example. This time there are two Swis running instead of one, both with the same priority. In this case, Swi_A is posted and starts to execute, but of course when the Hwi is made ready to run by an incoming interrupt, it is immediately preempted. The Hwi posts Swi_B and makes it ready to run, which is represented by the dotted line. However, it does not actually begin to execute until not only the Hwi has completed, but also when Swi_A has completed. Swi’s of the same priority are scheduled first in, first out, so Swi_A gets to run to completion before Swi_B starts to run. And of course, when Swi_B completes, the idle thread gets to run.

PTM Published on: 2012-07-17