Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7006655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:30:18+00:00 2026-05-27T21:30:18+00:00

The title might not be clear enough because I don’t know how to define

  • 0

The title might not be clear enough because I don’t know how to define my questions actually.

I understand Pthread is a thread library meeting POSIX standard (about POSIX, see wikipedia: http://en.wikipedia.org/wiki/Posix). It is available in Unix-like OS.

About thread, I read that there are three different models:

User level thread: the kernel does not know it. User himself creates/implements/destroy threads.

Kernel level thread: kernel directly supports multiple threads of control in a process.

Light weight process(LWP): scheduled by kernel but can be bounded with user threads.

Did you see my confusion? When I call pthread_create() to create a thread, did I create a user level thread? I guess so. So can I say, Pthread offers a user level solution for threads? It can not manipulate kernel/LWP?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:30:19+00:00Added an answer on May 27, 2026 at 9:30 pm

    I understand Pthread is a thread library meeting POSIX standard

    Yes. Actually, "Pthreads" stands for "Posix threads":
    http://en.wikipedia.org/wiki/Pthreads

    It is available in Unix-like OS.

    Actually, it’s available for many different OSs … including Windows, MacOS … and, of course, Linux, BSD and Solaris.

    About thread, I read that there are three different models

    Now you’re getting fuzzy. "Threads" is a very generic term. There are many, many different models. And many, many different ways you can characterize and/or implement "threads". Including stuff like the Java threading model, or the Ada threading model.

    When I call pthread_create() to create a thread, did I create a
    user level thread?

    Yes: Just about everything you do in user space is "protected" in your own, private "user space".

    User level thread: the kernel does not know it.

    No. The kernel knows everything 🙂

    Kernel level thread: kernel directly supports multiple threads of
    control in a process.

    Yes, there is such a thing as "kernel threads".

    And, as it happens, Linux makes EXTENSIVE use of kernel threads. For example, every single process in a Linux system is a "kernel thread". And every user-created pthread is ALSO implemented as a new "kernel thread". As are "worker threads" (which are completely invisible to any user-level process).

    But this is an advanced topic you do NOT need to understand in order to effectively use pthreads. Here’s a great book that discussed this – and many other topics – in detail:

    Linux Kernel Development, Robert Love

    Remember: "Pthreads" is an interface. How it’s implemented depends on the platform. Linux uses kernel threads; Windows uses Win32 threads, etc.


    Addendum

    Since people still seem to be hitting this old thread, I thought it would be useful to reference this post:

    https://stackoverflow.com/a/11255174/421195

    Linux typically uses two implementations of pthreads:
    LinuxThreads and Native
    POSIX Thread Library(NPTL)
    ,
    although the former is largely obsolete. Kernel from 2.6 provides
    NPTL, which provides much closer conformance to SUSv3, and perform
    better especially when there are many threads.

    You can query the
    specific implementation of pthreads under shell using command:

    getconf GNU_LIBPTHREAD_VERSION

    You can also get a more detailed implementation difference in The
    Linux Programming Interface
    .

    "Pthreads" is a library, based on the Posix standard. How a pthreads library is implemented will differ from platform to platform and library to library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The title might not be clear, but I don't know how else to put
The title might not be so clear (because I couldn't find a better one)
I know the title might not be clear and I apologize about that. so
I know the title isn't very clear. I'm new to PHP, so there might
Well, might not be clear with the title. I have pulled this right out
The title might not be so clear, and anyway it's better to just look
(using jQuery 1.4.4 edition) The title of the question might not be that clear,
If the title was not clear, I will try to clarify what I am
First of all, I just started PHP. I know my methods might not be
The title of this question was hard to come up with, it might not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.