Starting Node.js Thread Pool for Parallelism : <p>Yes hello.  I recently came to learn that Node.js is single-threaded.  I would like to use my application faster (MongoDB/Express app) so I have written the following script (I want it to use 8 processors)</p>

<pre><code>#!/bin/bash
node app.js &amp;
node app.js &amp;
node app.js &amp;
node app.js &amp;
node app.js &amp;
node app.js &amp;
node app.js &amp;
node app.js &amp;
</code></pre>

<p>When I try to run the script, I get many errors about ports being used, but I know that TCP allows for 65536 ports and it should only try to use 8.  Do I need to update my Node.js to a new version?</p>

<p>I am running on Amazon Linux.</p>

<p>Thank you.</p>
