Threads on js/wasm

checking cross-origin isolation…

starting…

Four bars, four workers started by the guest: each bar is that worker's own progress line. The dot is the page's animation loop — it only moves because the page's main thread is free while the workers compute. The step is measured by the program itself with clock.mono_ns(), so a slower machine does more iterations per step rather than a longer cycle. The program runs 20 laps and then ends by itself — reload the page to watch it again; switching tabs pauses and resumes it.

guest output


  

dev — the language · this page is built from tools/threaddemo; the local stand also reports itself to a log, this one keeps everything on screen.