pthread & LinuxThread

This is a discussion on pthread & LinuxThread within the Linux Programming forums, part of the Platform Specific Boards category; hi, i'm developing an application that use threads. i read that there are user-space and kernel-space threads. i want to ...

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    31

    pthread & LinuxThread

    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??


    thank u.

    bye.

  2. #2
    Registered User
    Join Date
    Jun 2003
    Posts
    31
    thank u for the information, i saw that LinuxThreads are built in but i'm not sure

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    31
    and what about NPTL (native posix thread library) ??

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

    thank u.

  4. #4
    Registered User
    Join Date
    Jun 2003
    Posts
    31
    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...

  5. #5
    Registered User
    Join Date
    Jun 2003
    Posts
    31
    > 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

  6. #6
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    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.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. pthread question
    By quantt in forum Linux Programming
    Replies: 7
    Last Post: 04-07-2009, 01:21 AM
  2. pthread and socket porting from Linux to Windows
    By mynickmynick in forum C Programming
    Replies: 2
    Last Post: 07-18-2008, 06:57 AM
  3. recv() malfunctioning in a pthread?
    By th3void in forum Networking/Device Communication
    Replies: 7
    Last Post: 11-12-2007, 12:00 PM
  4. pthread hanging
    By munna_dude in forum C Programming
    Replies: 1
    Last Post: 05-17-2007, 05:07 AM
  5. The Pthread Hell
    By matott in forum Linux Programming
    Replies: 1
    Last Post: 04-10-2005, 05:59 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21