lkml.org 
[lkml]   [1998]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Thread implementations...


On Sun, 21 Jun 1998, MOLNAR Ingo wrote:

> one thing i noticed about LinuxThreads, the most 'out of balance' basic
> pthreads operation in pthread_create(). Does NSPR create a pre-allocated
> pool of threads? (or some kind of adaptive pool?) If it's creating threads
> heavily (say per-request), then thats bad, at least with the current
> LinuxThreads implementation. We have a 1:5 gap between the latency of
> clone() and pthread_create() there...

I prespawn a fixed number of threads. I still have to make it dynamically
size the pool of threads... NSPR itself doesn't do that. (It's one of the
optimizations I'd like to get to.) But it shouldn't affect the numbers I
posted.

Dean


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.218 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site