Log in

View Full Version : scheduling policy in 2011 FRC Java Framework


Ether
18-03-2011, 00:13
Does anyone know, are threads at the same priority preemptively timesliced by default? If so, what is the time quantum?

derekwhite
18-03-2011, 07:18
In this implementation of Java, threads of the same priority will preempt each other (so it's not a "run until completion" policy), but it is based on the number of bytecodes executed, not strictly time based.

Ether
18-03-2011, 09:21
In this implementation of Java, threads of the same priority will preempt each other (so it's not a "run until completion" policy), but it is based on the number of bytecodes executed, not strictly time based.

Thanks for the reply. How do you know that? Is there a document somewhere I could read to learn more, rather than peppering you with more questions? Unless you don't mind :-)