PDA

Click to See Complete Forum and Search --> : VM Thread Scheduling


Dillinger4
Mar 21st, 2003, 01:13 PM
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?

CornedBee
Mar 23rd, 2003, 02:37 AM
Doesn't the JVM do its own thread scheduling? Cooperative scheduling wouldn't work in Java anyway.

Dillinger4
Mar 23rd, 2003, 11:52 AM
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.