title: Execute a file in parallel / multithreading in PHP
body: <p>I have a cron file <code>cron/cron1.php</code>. i have set up this for cron running 1 minute.</p>
  
  <p>so for next process it will take 1 minute to execute.</p>
  
  <p>now i want to run this file parallel three times in minute. this file takes execution time more than 2 min. </p>
  
  <p>can i run this file parallel in a single file like this</p>
  
  <p><strong>file1.php</strong></p>
  
  <pre><code>&lt;?php
        include("cron/cron1.php"); // run seperately
        sleep(5);
        include("cron/cron1.php"); // run seperately
         sleep(5);
        include("cron/cron1.php"); // run seperately 
  
  ?&gt;
  </code></pre>
  
  <p>in above file <code>cron1.php</code> will execute 5 seconds  difference but when above one is completed its process. as i told you each <code>cron1.php</code>  will takes more than 2 minutes to complete. so i couldn't achieve it.</p>
  
  <p>is there any process or multithreading or approch so that i can run each <code>cron1.php</code> every  5 seconds delay. then i will set the <code>file1.php</code> as a cron job.</p>