11.07.2015 Views

IAR PowerPac RTOS User Guide

IAR PowerPac RTOS User Guide

IAR PowerPac RTOS User Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

COOPERATIVE MULTITASKINGCooperative multitasking expects cooperation of all tasks. Tasks can only be suspended by calling a function of theoperating system. If they do not, the system "hangs", which means that other tasks have no chance of being executedby the CPU while the first task is being carried out. This is illustrated in the diagram below. Even if an ISR makes ahigher-priority task ready to run, the interrupted task will be returned to and finished before the task switch is made.Low priority taskExecuting task is interruptedISRISR puts high prioritytask in READY stateTimeInterrupted taskis completedHigh priority taskHigher priority taskIs executed14<strong>IAR</strong> <strong>PowerPac</strong> <strong>RTOS</strong>for ARM CoresPP<strong>RTOS</strong>-2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!