Threading with a for loop
<p>I want to create a for loop from 0 to 4 but my problem is I know only how to initiate one thread each time like this.</p>

<pre><code>thread t1(eat,"hello");
thread t2(eat,"hello");
</code></pre>

<p>So my question is how can I initiate many thread at a time in a loop ?</p>