Concept Flow - Thread synchronization with Mutex
Start Threads
Thread tries to lock Mutex
Access shared
resource
Unlock Mutex
Threads finish
Threads try to lock a mutex before accessing shared data. If locked, others wait. After use, mutex unlocks allowing next thread.