Re: A small change in the scheduler

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

 



On Mon, 6 Jun 2005, Antonio Mancina wrote:

> In this way there's no way for the forked tasks to harmfully behave... 
> the sum of the executions will not overcome the original timeslice.
> Please correct me if I'm wrong.

You're absolutely right.  The division of the timeslice
prevents a process from forking a gazillion processes
that all use less than one timeslice - starving the rest
of the system.

Note that if a benign process is forked (say, /bin/ls),
the parent process gets the remaining time in the child's
time slice back when the child process exits...

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

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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