|
2G1506: Programming with Processes
|
|
#define SHARED 0
sem_t semaphore;
...
int value = 1;
sem_init(&semaphore,
SHARED, value);