Tasks communicate with each other using message queues.
Semaphore and Mutex
Semaphore / Mutex is mainly used for synchronization between tasks.
Mutex(mutual-exclusion locks) is nothing but a semaphore which semaphore-wait and semaphore-signal should be done with in a task. Mutexes are used to implement critical sections and protect shared mutable data structures against concurrent accesses.
Semaphore Services
- Way to synchronize multiple tasks
- to ensure mutual exclusion
- Control access to a shared resource
No comments:
Post a Comment