Hi Rik, thank you for your answer. I have still some. I have seen the flags but I have not yet understood the difference between: CLONE_PTRACE, CLONE_VFORK, CLONE_STOPPED ? The comments weren't clear for me. And, what is PT_PTRACE? On 5/29/05, Rik van Riel <riel@xxxxxxxxxxx> wrote: > On Sun, 29 May 2005, Karane Mariano Vieira wrote: > > > I would like to change the way the scheduler delivers the timeslices, > > it is the goal of a small homework in my university. > > In that case, I won't tell you the answers. I'll only > tell you where to look ;) > > > I´d like to know: > > - the exactly moment (in the code) the a task receives its timeslice > > The central function for the scheduler is schedule() > in kernel/sched.c. > > > - Is there any differency between the code which deal with processes > > and threads > > Please take a look at kernel/fork.c, in particular > the function do_fork() and the functions it calls. > Pay particular attention to the flags... > > -- > "Debugging is twice as hard as writing the code in the first place. > Therefore, if you write the code as cleverly as possible, you are, > by definition, not smart enough to debug it." - Brian W. Kernighan > -- Karane. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/