[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a9e22dff0707120537l1a29de93vdd67f146cf36a120@mail.gmail.com>
Date: Thu, 12 Jul 2007 15:37:39 +0300
From: "Ni@m" <niam.niam@...il.com>
To: davids@...master.com, LKML <linux-kernel@...r.kernel.org>
Subject: Re: NPTL
So I can say that in linux 'thread' == 'process'?
Is kernel routine 'kthread' creating a process?
I'm just thinking on this subject: if to create 'real threads' - will
it increase performance? Should I ever think in this way?
When I say 'real thread' - I mean the thread that doen't switch
context when it's starting to run.
On 7/12/07, David Schwartz <davids@...master.com> wrote:
>
> > Hi!
> > I have a question about NPTL.
> > Are NPTL are still based on `clone` system call?
>
> Yes.
>
> > Are NPTL threads are
> > "processes" internally?
>
> No. By definition, all the threads belong to a single process. NPTL threads
> are based on KSEs (kernel scheduling entities). A non-threaded process is
> also a KSE. A threaded process is more than one KSEs. All KSE are,
> obviously, scheduled by the kernel.
>
> > Thanks!
>
> You're welcome.
>
> DS
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists