Assertion: semaphore | /r/RelatedTo | a lock object
Facets:
Source sentences:
text: Both semaphores and condition variables are associated with a lock object that they use to maintain mutual exclusion, but then they provide extra functionality on top of the lock for synchronizing thread execution.