POSIX threads and signals

Posted by Donal Fellows on Stack Overflow See other posts from Stack Overflow or by Donal Fellows
Published on 2010-04-04T16:44:43Z Indexed on 2010/04/04 16:53 UTC
Read the original article Hit count: 528

Filed under:
|
|

I've been trying to understand the intricacies of how POSIX threads and POSIX signals interact. In particular, I'm interested in:

  • What's the best way to control which thread a signal is delivered to (assuming it isn't fatal in the first place)?
  • What is the best way to tell another thread (that might actually be busy) that the signal has arrived? (I already know that it's a bad idea to be using pthread condition variables from a signal handler.)

For reference about why I want this, I'm researching how to convert the TclX package to support threads, or to split it up and at least make some useful parts support threads. Signals are one of those parts that is of particular interest.

© Stack Overflow or respective owner

Related posts about pthreads

Related posts about signals