* Question about CLONE_CLEARTID and thread group leader
@ 2002-09-17 2:46 Jamie Lokier
2002-09-17 3:10 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Jamie Lokier @ 2002-09-17 2:46 UTC (permalink / raw)
To: Ingo Molnar, linux-kernel
Dear Ingo,
CLONE_CLEARTID was created so that a thread can notify its partner
threads that its stack may by freed or reused. It is needed because the
stack isn't free until the exit() system call begins.
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?
Thanks,
-- Jamie
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question about CLONE_CLEARTID and thread group leader
2002-09-17 2:46 Question about CLONE_CLEARTID and thread group leader Jamie Lokier
@ 2002-09-17 3:10 ` Ingo Molnar
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2002-09-17 3:10 UTC (permalink / raw)
To: Jamie Lokier; +Cc: linux-kernel
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?
good question. We might need a new mechanism (new syscall) for a thread to
set its own ->user_tid after it has started up. I'll code it up. The
fastest thread-startup method is still to also have this mechanism
provided by clone() as well - but oviously at exec() time we cannot know
about such issues.
Ingo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-17 2:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-17 2:46 Question about CLONE_CLEARTID and thread group leader Jamie Lokier
2002-09-17 3:10 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®