Re: kernel thread support - LWP's

Khimenko Victor (khim@sch57.msk.ru)
Sun, 18 Jul 1999 22:21:01 +0400 (MSD)


On Sun, 18 Jul 1999, Alan Cox wrote:

> > > Why can't you do that by clone()ing to a trampoline that sends SIGSTOP
> > > to itself ?
> >
> > 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.
>
> my_clone_start(struct thread_context_thingy *p)
> {
> kill(getpid(),SIGSTP);
> return p->run(p->args);
> }
>
2 context switches != 0 context switches :-(( When you want to create
10000 inactive threads performace loss will be significant :-/

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