soven rout wrote:hii,
Actually I am new in java, as far as I know the daemon thread is the thread that is killed by the JVM.I think we should not worry about the termination of the thread scheduler as all the operations are managed by the JVM itself. Please let me know whether Thread Scheduler is a daemon thread or not and another question is can we get the instance of the thread scheduler so that using the method isDaemon() we can confirm about its Daemon.Thanks in advance.Kindly make the correction in the above statement if find anything bugged .
In all modern day JVMs, scheduling of the java threads are delegated to the Operating System.
Now, whether the scheduler itself is a thread or not, is basically an implementation detail. Regardless, since scheduling is done by the OS, it is not a thread in the JVM -- so whether it is a user or daemon thread is kinda moot.
Henry