It’s weird that POSIX semaphores allow you to query the current value (sem_getvalue(3)), but provide no way to query the maximum value.

*****
Written on