4 ms·
1. Move Thread 0 to end. 2. do a few iterations through thread 1 (e.g. n=5) 3. step darkness++ concurrently (via expand), so that darkness=1 4. step thread 0
by th0br0 11y ago
1. Move Thread 0 to end.
2. do a few iterations through thread 1 (e.g. n=5)
3. step darkness++ concurrently (via expand), so that darkness=1
4. step thread 0 to Monitor.Wait(sanctum)
5. the rest is straightforward.
- JustSomeNobody 11y agoWhoa! Spoiler alert! ;)