PDA

View Full Version : pthread & LinuxThread



Massive
07-07-2003, 02:56 AM
hi, i'm developing an application that use threads. i read that there are user-space and kernel-space threads.
i want to use kernel space threads....

i read that linux supports native-threads(kernel-space) and the project is LinuxThreads so i donwloaded LinuxThreads and i see that the library used is pthread.h .... but i heard that pthread support user space threads...

so wich is the right library??
:rolleyes:

thank u.

bye.

Massive
07-07-2003, 06:54 AM
thank u for the information, i saw that LinuxThreads are built in but i'm not sure :)

Massive
07-07-2003, 07:17 AM
and what about NPTL (native posix thread library) ??

it's a newer library, its'right??

thank u.

Massive
07-07-2003, 07:39 AM
attention!
nptl it's different to ngpt

http://people.redhat.com/drepper/nptl-design.pdf

take a look!

:)

P.S. see the benchmark at the last pages...

Massive
07-07-2003, 07:52 AM
> Besides, do you have any real reasons not to use LinuxThreads, i.e. do they miss something you need?

i don't think but if NPTL is more efficient why don't use it? especially if my application needs to be efficient :)

Zach L.
07-08-2003, 06:30 PM
A headline from vVv's link:


NEW: "STABLE" NGPT 2.2.0

TOPS BOTH LINUXTHREADS AND NPTL IN PERFORMANCE AND SCALABILITY


Looks like NGPT might be worth looking into. ;)