lkml.org 
[lkml]   [1999]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: kernel thread support - LWP's
Date
From
> > 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);
}

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

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