Jump to content

Semaphore: Difference between revisions

m
Line 55:
 
==[[C]]==
{{libheader|pthread}}
 
Here is an example of counting semaphores in C, using the "pthread" library. To make the code more readable, no error checks are made. A productive version of this implementation should check all the return values from the various function calls!
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.