WASM threads depend on shared memory and browser worker infrastructure. On the web, SharedArrayBuffer requires cross-origin isolation headers.

  • Use workers for CPU work and message passing.
  • Shared workers can coordinate state across tabs where supported.
  • Broadcast-style communication can use BroadcastChannel plus shared memory protocols.
  • Thread demos must degrade gracefully when headers or runtime support are absent.