Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Include Page
css.Synchronization.css
css.Synchronization.css
Include Page
css.webworks.css
css.webworks.css

Anchor
1048410
1048410
Synchronization

Anchor
1053840
1053840
This chapter focuses on how tasks can synchronize their activities with Interrupt Service Routines (ISRs), or other tasks.

Anchor
1068093
1068093
When an ISR executes, it can signal a task telling the task that an event of interest has occurred. After signaling the task, the ISR exits and, depending on the signaled task priority, the scheduler is run. The signaled task may then service the interrupting device, or otherwise react to the event. Servicing interrupting devices from task level is preferred whenever possible, since it reduces the amount of time that interrupts are disabled and the code is easier to debug.

Anchor
1053842
1053842
There are two basic mechanisms for synchronizations in µC/OS-III: semaphores and event flags.