On Thu, Jul 12, 2007 at 03:58:34PM +0300, [EMAIL PROTECTED] 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/