Semaphore - Mutual exclusion
Running processes in parallel in C# with mutually exclusive semaphore
Learn More