|
@ -194,13 +194,8 @@ server.listen(1337, "127.0.0.1"); |
|
|
But what about multiple-processor concurrency? Aren't threads |
|
|
But what about multiple-processor concurrency? Aren't threads |
|
|
necessary to scale programs to multi-core computers? |
|
|
necessary to scale programs to multi-core computers? |
|
|
</i> |
|
|
</i> |
|
|
Processes are necessary to scale to multi-core computers, not |
|
|
You can start new processes via <code>child_process.fork()</code> |
|
|
memory-sharing threads. The fundamentals of scalable systems are |
|
|
these other processes will be scheduled in parallel. |
|
|
fast networking and non-blocking design—the rest is message |
|
|
|
|
|
passing. In future versions, Node will be able to fork new |
|
|
|
|
|
processes (using the <a |
|
|
|
|
|
href="http://www.whatwg.org/specs/web-workers/current-work/"> Web |
|
|
|
|
|
Workers API </a>) which fits well into the current design. |
|
|
|
|
|
</p> |
|
|
</p> |
|
|
|
|
|
|
|
|
<p> |
|
|
<p> |
|
|