4.4.1. Semaphores#

In computer science, a semaphore is a useful tool that can be used to control access to a common resource by multiple tasks, or signal the occurance of an event.

A semaphore can be used to avoid the critical section problem which is introduced in the following video.

[Slides]

The following video gives an introduction to semaphores.

[Slides]

The following video show an example of how semaphores can be used \(\mu\)C/OS-II.

[Slides]