How to do asynchronous programming with only global variables? If a programming language only supports global variables, is it still possible to use asynchronicity, like callbacks, event-driven programming, other kinds of parallelisation?
How can it be done?
Every program that uses local variables can be converted to one that uses only global variables.  So, the answer is trivially yes.  However, it might not be pleasant for the software developer.