Fri Jul 17 23:37:31 EDT 2020
Blocking on conditions
Context: implementing a simple multitasking system.
The core decision for a simple system seems to be:
a) round robin poll-based
b) some kind of synchronous event system (e.g. CSP)
The former is MUCH simpler to do, because events are implicit. You
don't have to track when something becomes true, just that at some
time in the future, somone will notice it has become true. So this is
in essence asynchronous.
Conditions seem much more general as opposed to synchronous event
Also, callbacks seem to turn into CSP very naturally once they become