Hi wise monks, I seek knowledge about using signals and threads together:
1. When a signal occurs, which thread gets the signal, will it always be the original parent?
2. Is trying to lock a shared variable in a signal alarm dangerous (in that the lock may never succeed if the main thread which has been interrupted by the alarm already has the lock)?
3. What is an easy and tidy way for the original parent thread to check if a child thread is no longer running (because it has crashed for example).
In reply to Signals to threads by sectokia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |