JavaScript multithreading - recursive setTimeout workaround

In browsers' JavaScript, there's no built-in multithreading. Web workers ("WW") are not a perfect solution. WW don't have support in older browsers. From WW you can't access DOM. Between workers you can't share resources easily. WW are not optimal solution for all implementations of JavaScript multithreading functionality!

Pseudothreading or pseudomultithreading is a programming technique based on setTimeout and recursive function calls. It's a workaround for real JavaScript multithreading. It works now in all major browsers (including historical versions). See MOOPH, Module for Object Oriented Pseudomultithreaded Hypertext. Contact me.

written in 2015 by Cenek Svoboda

Check my projects:
WDPT - Web Designer's Productivity Tool
DoubleTheSnake - double snake game
Pseudomultithreading research