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?
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?