title: WaitForSingleObject and WaitForMultipleObjects equivalent in Linux?
body: <p>I am migrating an applciation from windows to linux. I am facing problem with respect to <code>WaitForSingleObject</code> and <code>WaitForMultipleObjects</code> interfaces.</p>
  
  <p>In my application I spawn multiple threads where all threads wait for events from parent process or periodically run for every t seconds.</p>
  
  <p>I have checked <code>pthread_cond_timedwait</code>, but we have to specify absolute time for this. </p>
  
  <p>How can I implement this in Unix?</p>