Anonymous user
Semaphore: Difference between revisions
m
→C
m (→C (pthread)) |
m (→C) |
||
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!
|