3 ms·
The article mentions multi-threaded desktop applications along with JS. Since JS is inherently single-threaded, what does that mean? Do they actually refer to m
by blauditore 10y ago
The article mentions multi-threaded desktop applications along with JS. Since JS is inherently single-threaded, what does that mean? Do they actually refer to multiple processes or some other magic?
- chickenfries 10y agoJavaScript doesn't really have "threads" but node JS has it's `child_process` module and the browser has web workers.
- blauditore 10y agoYeah, but Node child processes are actually separate OS processes, which behave quite differently from threads (higher overhead to spawn, separate memory). The same goes for web workers; they're more like daemon processes than different threads. So I guess this was just poor terminology in the article, not any new magic... :)