February 2020
Intermediate to advanced
292 pages
8h 54m
English
We used sem_t as a binary semaphore by passing the value 1 to the sem_init method. Semaphores can be used as counting semaphores, which means passing a value greater than 1 to the init method. In this case, it means that the critical section will be accessed concurrently by N threads.
Read now
Unlock full access