Slide 1 Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7 Slide 8 Slide 9 Slide 10 Slide 11 Product List
SYS/BIOS Semaphores Slide 3

Shown here is how a semaphore can be used to block a task. In the simplest case, one has a task that is running and in that task’s function, it makes the API call Semaphore_pend() on the mySem semaphore. Because mySem has a count of 0, the call to Semaphore_pend() will cause the scheduler to move this task to the BLOCKED state and at this point, some other thread will start to execute.

PTM Published on: 2012-07-19