Threads and Semaphores: 5 Synchronizing Threads

Up: GEOS SDK TechDocs | Up | Down | Prev: 4 Using Multiple Threads | Next: 5.1 Semaphores: The Concept

Because GEOS is a preemptive multitasking environment, it needs a way to prevent two threads from accessing system resources (or other shared data) simultaneously. Otherwise, data could be corrupted. GEOS uses semaphores to prevent to threads from performing conflicting operations at the same time.


Up: GEOS SDK TechDocs | Up | Down | Prev: 4 Using Multiple Threads | Next: 5.1 Semaphores: The Concept