Re: How to wait for multiple threads simultaneously?



chjfth@xxxxxxxxx writes:
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.

By using a suitable communication protocol among _cooperating_
threads.
.



Relevant Pages

  • Re: Multiple mails when using CC or BCC
    ... Please contact ISP to disable the feature where multiple copies are ... Description of the Windows Small Business Server 2003 Best Practices ... Using Microsoft Exchange Server 2003 Recovery Storage Groups ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • RE: Email Account or Contact
    ... I understand that you want to send multiple ... Locate on Distribution Groups, ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • Re: Multiple Office Versions
    ... I can understand that you are frustrated by the experience of multiple ... In order to re-associate the xls files ... Microsoft Office applications" in my last reply). ... feel free to let my manager know what you think of the level of service ...
    (microsoft.public.excel.programming)
  • Re: Multiple Office Versions
    ... I am slightly confused by the documentation and your respective posts. ... My experience with multiple Excel versions, but not Excel 2007, is as I ... However, if one or more versions are running, clicking an xls from file will ... only works for Microsoft Access and Word (see the section 1 "For Microsoft ...
    (microsoft.public.excel.programming)
  • Re: Delete all/Delete this one
    ... least damage if you accidentally hit 'Return'. ... created as a single item with multiple recurrences rather than multiple ... I recommend sending Microsoft feedback about this ASAP using ...
    (microsoft.public.mac.office.entourage)