This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to wait for multiple threads simultaneously?


Helloï

I'd like to ask whether glibc 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]