Re: NPTL

From: Ni@m
Date: Thu Jul 12 2007 - 08:37:50 EST


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@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/