-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
infinite loop in Boss fight #61
Comments
These kinds of "soft deadlocks" should have been a legitimate way of winning the game, yes, but we didn't implement it. It didn't occur to us at the time. |
Okay, I could solve it in different way. |
idea on how to implement it: have an "automated scheduler" that activates an auto stepping of threads (at random, or sequentially, or whatever; it's important to push forward the threads that are allowed to run); and for each step auto executed, decrement a watchdog timer. Importantly, passing through a critical section correctly resets the watchdog, as in "service has been rendered". If the watchdog reaches zero in auto-stepping mode, it means that the program was in a faulty state, and a "denial of service" was achieved. |
I made darkness and evil both 1 in first of loop, and entered lock twice (by releasing it in thread 1) in thread 0, then can never enter if in thread 1.
The text was updated successfully, but these errors were encountered: