Sorry, I don’t get it … Do you want to protect a resource (for instance a HW peripheral ) from being accessed concurrently ? Then use a mutex.
Counting semaphores have different purposes or use caes. I ‘d recommend this post discussing them.
Sorry, I don’t get it … Do you want to protect a resource (for instance a HW peripheral ) from being accessed concurrently ? Then use a mutex.
Counting semaphores have different purposes or use caes. I ‘d recommend this post discussing them.