What I need is a way to write some code for simulate a semaphore to aisle some critical zone from entering again while processing in it. Any idea or link?
This is a discussion on DOS critical zone within the A Brief History of Cprogramming.com forums, part of the Community Boards category; What I need is a way to write some code for simulate a semaphore to aisle some critical zone from ...
What I need is a way to write some code for simulate a semaphore to aisle some critical zone from entering again while processing in it. Any idea or link?
An idea: define a global variable which serves as a semaphore. Then implement the P and V operations to manage semaphore handling.
By the way, are you concurrent programming under DOS?