This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gij/eclipse sets SCHED_RR scheduling policy, hogs machine.


Andrew Haley wrote:
David Daney writes:
> 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.


Well, at least one kernel engineer seems to think that's what should
be done.  I accept that it might not work, but there's notthing better
that will, so ...

I don't doubt that SCHED_RR is the wrong thing. But it would be nice if we could somehow get Thread.setPriority() to actually change the thread priority as documented.


David Daney


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]