gij/eclipse sets SCHED_RR scheduling policy, hogs machine.

David Daney ddaney@avtrex.com
Wed Jun 29 16:18:00 GMT 2005


Andrew Haley wrote:
> For some bizarre reason we're setting SCHED_RR when we do
> java::lang::Thread::setPriority ().  I cannot begin to imagine why
> anyone ever thought this might be a good idea.
> 

IIRC the current implementation of Thread.setPriority(int) does not work 
on Linux with SCHED_OTHER.  Perhaps it was an attempt to make it work.

We have an ugly local hack that uses setpriority() but it does not work 
with NPTL.

David Daney.



More information about the Java-patches mailing list