On Mon, 25 Apr 2005, ;)- wrote:

> hi community!
>
> as far as i could understand, when building glibc either nptl or
> linuxthreads is in use. could anyone tell me what is the difference?
> does anybody know which is better for performance?
> (my system is athlon if this does matter.)
>

 Probably the most visible difference is that with nptl a threaded
process will show as a single process in 'top'.  e.g. open several tabs
in your favourite browser, then look at top - use 'F' to select fields,
sort on size (I'm assuming you have more processes than fit into a
single screen in top, and that the browser is among the biggest).

 With linuxthreads you get a series of processes each reporting the
same space (probably, one per tab).  In fact, this space is only used
once, the child threads are displayed in error.  With nptl only a single
process shows, including all of the data for its children.  This is just
an example of how the 'infrastructure' produces more-correct results
with nptl.

 As to performance, I haven't done any benchmarking.  Unless the nptl
performance is bad (and I see no evidence of that),  I can't see any
reason to revert to linuxthreads where nptl is available.

Ken
-- 
 das eine Mal als Trag�die, das andere Mal als Farce

--
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to