Re: question about scheduler related issue

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

 



On 8/13/05, Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> wrote:
> Dear list
> 
> I have several question regarding 2.6 scheduler.

I will try to answer the one I know about.

<snip>
 
> 2. If a process issues yield(), in contrast with 2.4, 2.6 now drops the
> process to the lowest priority (e.g MAX_PRIO). Isn't it risky as
> sometimes yield() is used in certain application to voluntarily let
> other threads on the same application to run? So instead of waiting all
> the processes on same priority list has been executed, it is now forced
> to wait so much longer ....

Those apps are broken in a 2.6 environment. This is a well-known issue
and the behavioral change in sched_yield() was announced during the
2.5 cycle (3 years ago now, I believe). Its use as a preemption method
is broken, IOW.

Thanks,
Nish

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