On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote:
William James writes:
> On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote:
> > William James writes:
> > > > There's no race.  For async signals, system just picks one thread for
> > > > delivery.
> > >
> > > This is bad. Is there no function to define that signals should be
> > > send to all threads for async signals?
> >
> > You don't (and can't) send signals to threads.  You send them to
> > processes.
>
> Which of the threads in the process gets called to run the signal
> handler for async signals?

One of 'em.  It's not documented.

Only one of them or any number of them?


You can control which threads can process signals, though.  Just set
the signal mask.

You mean I can turn off signal handling in all threads except the main
one which then sends the signal to all others?

Cheers,
William
--
   @,,@   William James
  (\--/)  [EMAIL PROTECTED]
 (.>__<.) GNU/Solaris hacker
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to