1 |
Luke-Jr wrote: |
2 |
> Did it actually solve it or just hide it? IIRC, NPTL causes 'ps' to show |
3 |
> process trees differently.. |
4 |
|
5 |
NPTL actually changes the way linux creates threads. Instead of just |
6 |
using the clone method to create threads, NPTL still uses clone, but it |
7 |
now has actual kernel support for the resource management. This makes it |
8 |
easier and faster for the kernel to context switch between processes |
9 |
(and threads within a process). |
10 |
|
11 |
A prime example of this is a test from the LKML, where Ulrich Drepper |
12 |
wrote he was able to start and stop 100,000 threads in about 2 seconds. |
13 |
In further messages, Ingo Molnar confirms this and also points out that |
14 |
before these changes, it would have taken upwards to 15 minutes for the |
15 |
same thing. |
16 |
|
17 |
http://kerneltrap.org/node/422 |
18 |
-- |
19 |
gentoo-server@g.o mailing list |