WaitForSingleObject and WaitForMultipleObjects equivalent in linux

Posted by Sirish Kumar on Stack Overflow See other posts from Stack Overflow or by Sirish Kumar
Published on 2010-04-27T07:59:43Z Indexed on 2010/04/27 8:03 UTC
Read the original article Hit count: 999

Filed under:
|

Hi,

I am migrating an applciation from windows to linux. I am facing problem w.r.t WaitForSingleObject and WaitForMultipleObjects interfaces

In my application I spawn multiple threads where all threads wait for events from parent process or periodically run for every t seconds.

How can I implement this in Unix.

I have checked pthread_cond_timedwait, but we have to specify absolute time for this.

© Stack Overflow or respective owner

Related posts about porting

Related posts about linux