We’re in a severe RAM crunch on a project, and are looking for ways to free up some RAM. There are some places where queues are used where they aren’t really needed, and semaphores would work just as well. So, I started looking at the effects of replacing a few queues with semaphores.
Then I discovered that a semaphore is just another kind of queue, and the memory overhead is the same (76 bytes, IIRC).
Isn’t there a better way to implement semaphores that won’t use up quite as much memory?