|
|
|
|
|
by simplegeek
511 days ago
|
|
You're right, I could have phrased it better to something like: "If we run P and Q concurrently with ānā initialized to zero, what extreme interleaving could result in the lowest value of 'n' when the two processes finish executing their statements on a model checker?" I'll edit it to improve, thanks. |
|
though there's a lot of fun in here if you allow for optimizing compilers and lack of synchronization. e.g. without explicit synchronization between P/Q and the observing thread (assuming it's the main thread), it's reasonable for a compiler to simply delete P and Q entirely and replace the whole program with `print(0)`