run two python files in parallel from terminal
<p>If I have two python programs called <em>test1.py</em> and <em>test2.py</em>, How can I run them in parallel in terminal?
Does </p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>python test1.py|python test2.py</code></pre>
</div>
</div>
</p>

<p>do that?</p>

<p>No, this will pipe the output from test1.py into test2.py.</p>

<p>Use this instead: <code>python test1.py &amp;; python test2.py &amp;</code></p>

<p>The <code>&amp;</code> will fork the command into its own process.</p>

python multithreading