critical section
Code that touches shared data and must run in only one thread at a time.
A critical section is the region protected by a mutex; keep it short so other threads are not kept waiting.
Code that touches shared data and must run in only one thread at a time.
A critical section is the region protected by a mutex; keep it short so other threads are not kept waiting.