Can someone help me out with example of a situation in which absence of mutexes "definetely" leads to incorrect result.
I need this so that I could test my mutex implementation.
-- Neeraj
Consider any correct code that uses mutexes for synchronization. By removing the locking, you will introduce new (possibly incorrect) behaviors (executions) to the program. However, the new code will still contain all of the old behaviors, therefore there will always be at least one execution that will yield a correct result. Hence, what you're asking for is impossible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With