Pausable Threads

Here’s another innovation: Java threads that can be paused, cleanly disposed or single-stepped at any time.

This is also an alternative to the code-conversion based coroutine approach I showed you last time. In this new approach, all you need to do is call a little function (“ping”) from time to time which will take the appropriate action (pause, continue or exit). We could actually automate that even. We have smart translators!