Simulating context switches in JavaScript? Simulating context switches in JavaScript? multithreading multithreading