Talk About Network

Google


Giganews Newsgroups




Programming > Programming Threads > Signals and Thr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 4165 of 4207
Post > Topic >>

Signals and Threads

by pushpakulkar@[EMAIL PROTECTED] Nov 27, 2008 at 12:24 AM

Hello all,

In multi-threaded programming,  suppose you have multiple threads in a
process. We would have a signal mask
for the entire process. I would define signal handlers for all the
asynchronous signals that have to be handled by the user.  Now if any
such signal arrives and it will be handled by a thread which has been
waiting for that event. While this thread is executing the signal
handler, same signal arrives again. To make it asynch-safe, If I have
masked the signal then will it wait till this thread completes the
signal handler and the signal is unmasked to the handled again. Will
there be no issues at all. If yes, how can that be handled. How does
the OS handle this while executing default action for signal handlers.
Any inputs on this are highly appreciated.

Thanks and Regards,
Push
 




 3 Posts in Topic:
Signals and Threads
pushpakulkar@[EMAIL PROTE  2008-11-27 00:24:41 
Re: Signals and Threads
Steve Watt <steve.remo  2008-12-01 00:56:44 
Re: Signals and Threads
Dave Butenhof <david.b  2008-12-01 06:05:41 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Sat Jul 4 18:13:14 PDT 2009.