Configurable semaphore use