[Qt-interest] Threads

phil prentice philp.cheer at talktalk.net
Tue Jun 22 18:52:37 CEST 2010


Thanks very much for your swift answers.
I will have a read of the man pages.
thanks again

Phil

On Tuesday 22 June 2010 16:16, Gabriel Beddingfield wrote:
> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list