Re: Linux scheduler (scheduling) questions

From: Felipe Alfaro Solana
Date: Tue Jun 29 2004 - 10:18:12 EST


On Tue, 2004-06-29 at 08:51 -0400, Povolotsky, Alexander wrote:

> 5. Deviating from the scheduling line of questions (but staying with threads
> issues): is there an option in clone(2) to make threads
> not to run in the same address space but rather act as independent
> process(es).

If you want something in a different address space, then you want a
process. Threads of the same process share the whole address space
(except they have their own stack) and this have some advantages, like
faster CPU context switching between threads of the same process, and
faster creation times, among others.


-
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/