Re: Slow pthread_create() under high load

From: Jeremy Fitzhardinge (jeremy@goop.org)
Date: Wed Mar 29 2000 - 20:47:13 EST


On 30-Mar-00 Christopher Smith wrote:
> While it's undoubtedly doable in user-space, the whole idea of that
> feature is to avoid signal-handling overhead (and replace it with
> thread creation overhead I guess ;-). I'm not sure how one would do
> THAT in user space without some kind of kernel support.

You'd simply block that signal in all threads and have the signal handler
thread use sigwait() to wait for the signal to turn up. If your signal
load is heavy enough that you need multiple threads to deal with it, you
can create multiple signal handler threads.

        J

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



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:26 EST