Re: [patch] SMP alternatives

From: H. Peter Anvin
Date: Wed Nov 23 2005 - 16:54:41 EST

Daniel Jacobowitz wrote:

I don't think I see the point. This would let you optimize for the
"multi-threaded, but hasn't created any threads yet" or even
"multi-threaded, but not right now" cases. But those really aren't the
interesting case to optimize for - that's the equivalent of supporting
CPU hotplug.

The interesting case is when you know at static link time that the
library is single-threaded, or even at dynamic link time. And it's
easy enough at both of those times to handle this. In many cases glibc
doesn't, because it's valid to dlopen, but that could be
accomodated - a simple matter of software.

No, you can never know that unless you can't call mmap().

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