title: Parallel Programming in Codeigniter
body: <p>I am making an Web App in Codeigniter PHP Framework. 
  When a user clicks on Login Button, there are 5-6 functions that gets called before serving the dashboard to the user</p>
  
  <p>Ex</p>
  
  <pre><code>/*When user clicks login button */
   $this-&gt;setSession($u_id);
   $this-&gt;getUserData($u_id);
   $this-&gt;getUserFriends($u_id);
   $this-&gt;sendEmail($u_id);
   $this-&gt;showDashboard($data);
  </code></pre>
  
  <p>Now the above four functions are independent functions..they dont interact with each other in any way. So system would still be in consistent mode if those 3 functions gets executed in any order or gets executed parallely.</p>
  
  <p>So how can i make those 3 functions execute simultaneously in Codeigniter if its possible ??</p>
  
  <p>thanks in advance</p>