deadlockempire / deadlockempire.github.io

The Deadlock Empire: Slay dragons, learn concurrency!
https://deadlockempire.github.io
GNU General Public License v2.0
979 stars 45 forks source link

infinite loop in Boss fight #61

Open EX867 opened 6 years ago

EX867 commented 6 years ago

infinite 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.

Soothsilver commented 6 years ago

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.

EX867 commented 6 years ago

Okay, I could solve it in different way.

jerzydziewierz commented 1 month ago

idea on how to implement it:

have an "automated scheduler"