9 ms·
Maybe more appropriate even than the node "cluster" in this demo is https://github.com/xk/node-threads-a-gogo https://github.com/xk/node-threads-a-gogo > Why t
by netgusto 10y ago
Maybe more appropriate even than the node "cluster" in this demo is https://github.com/xk/node-threads-a-gogo https://github.com/xk/node-threads-a-gogo
> Why threads ?
> 4.- The threads of a process share exactly the same address space, that of the process they belong to. Every thread can access every memory address within the process' address space. This is a very appropriate setup when the threads are actually part of the same job and are actively and closely cooperating with each other. Passing a reference to a chunk of data via a pointer is many orders of magnitude faster than transferring a copy of the data via IPC.