Re: Question about CLONE_CLEARTID and thread group leader

Ingo Molnar (mingo@elte.hu)
Tue, 17 Sep 2002 05:15:35 +0200 (CEST)


On Tue, 17 Sep 2002, Jamie Lokier wrote:

> One question has been bothering me for a while: what about the thread
> group leader's stack? These days, isn't it the case that the group
> leader is supposed to be equivalent to the other threads? If so, how
> does it exit and release its own stack -- or do we understand that the
> group leader, as a one-off exception, has to block signals before
> exiting?

Ulrich says that due to the special way the initial thread is layed out
(it has a special exit handler), it never frees its own stack - so this is
not a problem. This does not create any additional assymetry in the
threading library - the initial thread is special already.

Ingo

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