Dear all,
Here i come to seek your expert opinion once again. :-)
I am reading on Threads in the
SCJP book by K&B.
They have done a great job explaining on Threads at one point they have explicitly mentioned,
When it comes to threads, very little is guaranteed
. I understand this statement, but i'm just curious to know why? For exp in Operating System there are various Scheduling algorithms like FIFO, SJF, Priority, Round Robin which are used and their usage guarantees a fair allocation of resources to all. When i started learning
Java, i read in some book sorry i cant recall in which but it said that the JVM is like a virtual OS or a connection between your java programs and the underlying Operating system of your machine.
So if the Operating System of my machine can emply all these scheduling algorithms then why can't JVM?
Just curious about this woobly nature of Threads in JVM, perhaps you might help throw some light on this.