[Qt-interest] Threads

Gabriel Beddingfield gabrbedd at gmail.com
Tue Jun 22 18:16:50 CEST 2010


Forgot to reply to list...

On Tue, Jun 22, 2010 at 11:15 AM, Gabriel Beddingfield
<gabrbedd at gmail.com> wrote:
> On Tue, Jun 22, 2010 at 11:09 AM, Gabriel M. Beddingfield
> <gabrbedd at gmail.com> wrote:
>>
>> On Tue, 22 Jun 2010, phil prentice wrote:
>>
>>> Hi
>>>  Sorry if this is a stupid question, but I was wondering the type of
>>> thread
>>> QThread uses i.e. is it "Kernel-Space Threads"  or "User-Space Threads"?
>>>
>>> I am using Qt4.2 on Linux
>>
>> Uses pthreads, which are kernel threads.
>
> Doh!  That's not quite right... but it's usually right.
>
> pthreads is POSIX, and somewhat implementation independent.
>
> The threads are supplied with your libc.  Most these days are shipping
> NPTL.  NPTL is kernel threads.  LinuxThreads is user-space threads
> (IIRC).  Most every distro is using NPTL these days.
>
> Read the man page pthreads(7) for more info (man 7 pthreads)
>
> -gabriel
>




More information about the Qt-interest-old mailing list