Question about threads and signals

Jamie Lokier (jamie@shareable.org)
Sat, 18 Jan 2003 03:24:50 +0000


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/