lkml.org 
[lkml]   [2007]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Fwd: NPTL
From
On Thu, Jul 12, 2007 at 03:58:34PM +0300, Ni@m wrote:
> Of course .. I ment they are _almoust_ similar.

The lack of an address space seems to make them rather different too. A
process contains address space, and one or more threads. A thread is
hence a component of a process, but not really similar to a process
since it is just part of a process.

> Hm. If the thread is running after it's sister or parent process - you
> do not have to switich the process context. Is this done in kernel??

You are switching out cpu registers, stack, and such, even though you
are not changing address space, so you are doing a context switch. The
cpu registers and state is the context. Running multiple threads of a
single process in a row can avoid messing with the TLB and other address
space related things, but it still switches context.

--
Len Sorensen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-07-12 18:51    [W:0.038 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site