Is Multithreading in WebAssembly still state of the art for Rust/wasm multi threading?
In particular, if I am reading that comment correctly:
- it is possible to have multiple OS threads via web-workers
- sharing between the threads is limited (i.e. message passing style)
What I would like to do is something closer to Linux style threading -- i.e. a shared memory space that all threads run from.
The particular application I am working on is a small VM that runs 'M' green threads on 'N' OS threads. To the best of my knowledge, without dividing the VM threads into 'batches' and ensuring they have separate heaps, there is no wa yto do this in a 'message passing style' -- and that we need a shared address space with multiple threads.