How to wait for multiple threads simultaneously?
- From: chjfth@xxxxxxxxx
- Date: Mon, 11 Feb 2008 18:21:35 -0800 (PST)
Hello,
I'd like to ask whether Linux provides an effective way to wait for
multiple thread's end. Using pthread_join, I can only wait for one
thread at a time. Microsoft provides WaitForMultipleObject for doing
this , how about glibc or POSIX?
An even harder question, how can I wait for one thread's end and one
file descriptor(e.g STDIN_FILENO) to be readable simultaneously? -- If
either one of the two conditions becomes fulfilled, the other one must
quit its waiting status immediately as if no wait operation was
carried
out.
Thank you.
.
- Follow-Ups:
- Re: How to wait for multiple threads simultaneously?
- From: David Schwartz
- Re: How to wait for multiple threads simultaneously?
- From: llothar
- Re: How to wait for multiple threads simultaneously?
- From: Dildo Bogumil di Boscopelo
- Re: How to wait for multiple threads simultaneously?
- From: Rainer Weikusat
- Re: How to wait for multiple threads simultaneously?
- Prev by Date: Embedded Linuix Workshop
- Next by Date: Re: How to wait for multiple threads simultaneously?
- Previous by thread: Embedded Linuix Workshop
- Next by thread: Re: How to wait for multiple threads simultaneously?
- Index(es):
Relevant Pages
|