Re: kernel thread support - LWP's

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


Andi Kleen <ak@muc.de> writes:

> Similar waitpid for a STOP and sigwaitinfo.

There wouldn't be only one extra syscall if the suspend flag is
implemented. The manager would be like this:

pid = clone (..., ... | CLONE_SUSPEND, ...);

if (sched_setparam (pid, ...) != 0
|| sched_setscheduler (pid, ...) != 0)
{
... kill newly created thread and report error ...
}

kill (pid, SIGCONT);

The child does not have to be modified at all, no trampolines and the
only new syscalls is the `kill' call.

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