FreeRTOS series | mutually exclusive semaphores

Mutually exclusive semaphore 1. Priority reversal Priority reversal is a common problem when using binary semaphores. It is very common in the deprivable kernel, but it is not allowed in the real-time system, because it will destroy the expected sequence of tasks and may lead to serious consequences. An example of priority reversal is shown ...

Posted by slimboy007 on Fri, 04 Mar 2022 15:49:33 +0100

AbstractQueuedSynchronizer (AQS) source code detailed analysis - Semaphore source code analysis

1. Introduction Semaphore, a semaphore, holds a series of permissions. Each call to the acquire() method will consume a license, and each call to the release() method will return a license.Semaphore is usually used to limit the number of accesses to shared resources at the same time, which is often referred to as flow restriction.Semaphore sem ...

Posted by mona02 on Sat, 19 Feb 2022 06:30:32 +0100