-
VM Thread Scheduling
Just want to confirm some information. From what i remember Windows VM's use preemptive thread scheduling, Mac's cooperative thread scheduling. Now here is where i am hazy. Unix uses a combination of bolth. From what i have read the green thread model for Solaris uses cooperative thread scheduling and i guess any other preemptive. But how do you know which one the VM you have uses?
-
Doesn't the JVM do its own thread scheduling? Cooperative scheduling wouldn't work in Java anyway.
-
Yes of course the VM does it's own thread scheduling.
On all VM's preemptive scheulding is used for threads of different priorities. Now depending on the VM, cooperative scheduling will be used for threads of the same priority or preemptive scheduling will be used.