[lkml]   [1999]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: kernel thread support - LWP's
"Khimenko Victor" <> writes:

> The whole idea is to avoid context switches after process creation (it's not
> even related to LWP's). I can not understood how clone()ing to a trampoline
> will help to do this.

Well, I need it to set parameters (e.g. the scheduler) for children.
It cannot reliably be done without a new option since the manager
thread has to know when the child is created and it must change the
parameters before it starts executing. And you ertainly don't want to
have a sleep(1) in the manager before changing the parameters (and
maybe even this can fail.

Instead it is necessary to know that once clone() returns the manager
can set the parameters.

---------------. drepper at ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at `------------------------

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:53    [W:0.096 / U:2.864 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site