Re: kernel thread support - LWP's

Ulrich Drepper (drepper@cygnus.com)
18 Jul 1999 12:46:13 -0700


Alon Ziv <alonz@cs.technion.ac.il> writes:

> If we use the trampoline approach, we get:
>
> Original thread:
> - allocate new stack
> - new_tid = clone(...)
> - waitpid(new_tid, WUNTRACED)
> - (update thread tables &c)
> - kill(new_tid, SIGCONT)
> New thread:
> - sched_setscheduler(new_tid, ...)
> - kill (new_tid, SIGSTOP)

Even worse. Since the manager has to know when the
schedparam/scheduler calls fail it the child must communicate this
somehow to the manager. And this is absolutely unnecessary since the
manager could make the calls itself.

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

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/