remzi-arpacidusseau / ostep-typos

51 stars 44 forks source link

semaphores: Semaphores For Ordering (page5) suggestion #45

Closed yangjingchi closed 1 year ago

yangjingchi commented 2 years ago

just a suggestion for the following sentence.

"The only way this will happen is if the value of the semaphore is not greater than 0; hence, 0 is the initial value."

I think it's better this way

The only way this will happen is if the value of the semaphore is less than 0; however since sem_wait() will first decrement the value before checking it, hence, 0 is the initial value."

remzi-arpacidusseau commented 1 year ago

eh I dunno. I can see why it is the way it is. I will think on it. thanks!