Re: pthreads and signals
- From: Michael Kerrisk <michael.kerrisk.at.gmx.net@xxxxxxxxxx>
- Date: Tue, 10 Apr 2007 07:15:56 +0200
On 9 Apr 2007 20:35:57 -0700, bharat1478@xxxxxxxxx wrote:
Hi,
I am using pthreads in linux (Fedora Core 6). I know that each
thread in a process can have its own signal mask. Lets say thread A
masks SIGIO and threads B doesn't. Also lets say there is a signal
handler for SIGIO for the process. Now does that mean SIGIO may/may
not be delivered to the process depending on which thread is
scheduled ? I may be lacking some information here or maybe wrong
conceptually to start with. Any help would be appreciated.
Bharat,
The signal will only be delivered to (and handled by) one of the
threads that is not blocking the signal. i.e., in your case it will
always be delivered to thread B.
Cheers,
Michael
.
- References:
- pthreads and signals
- From: bharat1478
- pthreads and signals
- Prev by Date: pthreads and signals
- Next by Date: Re: Fast shared multiple reader/single writer implementation?
- Previous by thread: pthreads and signals
- Next by thread: Re: pthreads and signals
- Index(es):
Relevant Pages
|