Question about threads and signals

From: Jamie Lokier (jamie@shareable.org)
Date: Fri Jan 17 2003 - 22:24:50 EST


Dear POSIX thread experts (i.e. Ingo and Ulrich),

I have a teensy question. Using the new Linux 2.5 threads + glibc/NPTL:

1. If a signal is delivered to a thread, is it masked for the duration of
   the handler in (a) just that thread or (b) all threads?

   In other words, if I have 3 threads and SIGIO is not blocked in any
   of them, is it possible for my SIGIO handler to be called up to 3
   times concurrently? Or is the blocked mask somehow shared?

   Is the same thing true of SIGCHLD? SIGSEGV?

2. Is this true of POSIX threads in general, or just Linux?

Thanks,
-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jan 23 2003 - 22:00:17 EST