dcsimg
thread scheduling: cooperative or preemtive?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Irina_Cozianu
Posted On:   Thursday, February 20, 2003 02:26 AM



I'm using a jvm 1.1.8 from ibm under an ibm OS called 4690.


I don't know if the thread scheduling is cooperative or preemtive for this jvm and for the moment I can't make any test program to determine it.


Is there anybody who has any information about this?


Thanks

Re: thread scheduling: cooperative or preemtive?

Posted By:   Marian_Olteanu  
Posted On:   Thursday, March 13, 2003 08:54 AM

In my oppinion, all threads in Java are preeptive, and if the OS offers support for preeptive threads, than the JVM may or may not implement native threads.
I say that because you don't need an OS that supports preemptive threading to do preemptive threading. Even, you don't need an OS that supports threading to do preemptive threading. I think that you can do preemptive threading by library functions in all UNIX systems.

But there are different oppinions
here

There, you can find a way to test it.
If really there is no preemtive threading on Solaris, than the SUN guys are not very smart.
About | Sitemap | Contact