Re: A small change in the scheduler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux