3 ms·
What is the memory model of the NiDIUM js with native threading support?
by k4st 13y ago
What is the memory model of the NiDIUM js with native threading support?
- paraboul 13y agoThe memory is obviously not shared (handling memory barrier / mutex in JS would be too annoying). However, it uses inter-thread communication using structured clone (https://developer.mozilla.org/en-US/docs/Web/Guide/DOM/The_structured_clone_algorithm https://developer.mozilla.org/en-US/docs/Web/Guide/DOM/The_s...) or object stealing where you send an object to a thread with a zero-copy advantage but lose its content/ability to use it from the "sending thread"
- k4st 13y agoThanks for the explanation / link :-)