Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Whether Thread Scheduler is a daemon thread?

 
soven rout
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 21123
78
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic