Sentence:  The thread increments the <WSD>semaphore</WSD> to prevent other threads from entering the critical section at the same time. 
Meaning of the word marked with <WSD> tags:  A bit, token, fragment of code, or some other mechanism which is used to restrict access to a shared function or device to a single process at a time, or to synchronize and coordinate events in different processes.