Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Whether Thread Scheduler is a daemon thread?  RSS feed

 
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 .
 
author
Posts: 23811
140
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
Boost this thread!