Re: Fwd: NPTL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux