In this Tutorial I have explained the Deciding order of Execution using Semaphore.
Deciding order of execution is a solution for Critical Section problem.
I have used following API's
1. CreateSemaphore
2. ReleaseSemaphore
3. WaitForSingleObject
4. CreateThread
5. CloseHandle
For More information about Semaphore,Check this Link
https://docs.microsoft.com/en-us/wind...
Video Tutorials for
1 How to Create Semaphore
• 14.CreateSemaphore API- Windows System Pro...
2. How to Create Thread
• 10. CreateThread - Windows System Programm...
3. Thread Synchronization using Semaphore
• 36. Thread Synchronization Using Semaphore...
4. Binary Semaphore
• 37. Binary Semaphore(Adding 2 No's Using B...
Follow me on Google Plus
https://plus.google.com/u/0/
Please Share and Subscribe ASystemProgramming Channel
For any Query drop your comment in Comment Box.
Credits : https://msdn.microsoft.com