aspose file tools*
The moose likes Threads and Synchronization and the fly likes Whether Thread Scheduler is a daemon thread? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Whether Thread Scheduler is a daemon thread?" Watch "Whether Thread Scheduler is a daemon thread?" New topic
Author

Whether Thread Scheduler is a daemon thread?

soven rout
Greenhorn

Joined: Feb 19, 2012
Posts: 19
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 .
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18707
    
  40

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


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Whether Thread Scheduler is a daemon thread?