March 2013
Intermediate to advanced
346 pages
8h 4m
English
We have covered mutex, conditional variables, and reader/writer lock in the previous three recipes. This is the last recipe on threads synchronization at Android NDK, and we will discuss semaphores.
Readers are expected to read through the previous three recipes, Synchronizing native threads with mutex at Android NDK, Synchronizing native threads with conditional variables at Android NDK, and Synchronizing native threads with reader/writer locks at Android NDK, before this one.
The following steps will help you create an Android project that demonstrates the usage of pthread reader/writer lock:
NativeThreadsSemaphore. Set ...