William James writes:
> On 2/21/07, Vincenzo Sciarra <[EMAIL PROTECTED]> wrote:
> > All threads receive the signal. Better, the main thread receive the signal 
> > but it shares the signal with other threads.
> >
> >
> >
> > Dott. Vincenzo Sciarra
> 
> So all  threads call the signal callback at the same time? Can I use
> pthread_mutex_lock() in the signal handler to prevent a race
> condition?

There's no race.  For async signals, system just picks one thread for
delivery.  (Obviously, for sync signals, it's the same thread.)

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to