Re: [ANNOUNCE] Native POSIX Thread Library 0.1

From: Olivier Galibert (
Date: Mon Sep 23 2002 - 14:44:01 EST

On Mon, Sep 23, 2002 at 08:30:04AM -0700, Larry McVoy wrote:
> What do you think causes a context switch in
> a threaded program? What? Could it be blocking on I/O? Like 99.999%
> of the time? And doesn't that mean you already went into the kernel to
> see if the I/O was ready? And doesn't that mean that in all the real
> world applications they are already doing all the work you are arguing
> to avoid?

I suspect a fair number of cases is preemption too, when you fire up
computation threads in the background. Of course, the preemption
event always goes through the kernel at some point, even if it's only

Actually, in normal programs (even java ones), _when_ is a thread
voluntarily giving up control? Locks?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Sep 23 2002 - 22:00:39 EST