hey guys,
let's say there is a while loop, that checks if it is allowed to write to a memory segment. if it is not allowed, it will wait a couple of ns, then it will check again and so on. what if semaphores unlock and let's say 2 processes at the same time will read it as unlocked and will try to perform action. how can i eliminate that?
let's say there is a while loop, that checks if it is allowed to write to a memory segment. if it is not allowed, it will wait a couple of ns, then it will check again and so on. what if semaphores unlock and let's say 2 processes at the same time will read it as unlocked and will try to perform action. how can i eliminate that?
Comment