jump to navigation

What is a daemon thread? October 28, 2006

Posted by Allu in JAVA.
trackback

Daemon threads are sometimes called “service” threads. These are threads that normally run at a low priority and provide a basic service to a program or programs when activity on a machine is reduced. An example of a daemon thread that is continuously running is the garbage collector thread. This thread is provided by the JVM.

Advertisements

Comments»

1. kumar - November 21, 2006

hai

2. satya - December 7, 2006

please let me know
How to create user defined Deman thread

please give me replay as early as possible

3. dinesh - December 18, 2006

Daemon threads are sometimes called “service” threads.

4. dinesh - December 18, 2006

Daemon threads are sometimes called “service” threads. These are threads that normally run at a low priority and provide a basic service to a program or programs when activity on a machine is reduced. An example of a daemon thread that is continuously running is the garbage collector thread. This thread is provided by the JVM.

5. Erol - June 14, 2007

I don’t know exactly but
void setDeamon(boolean);
method of Thread class makes thread instance as Deamon

6. sidhartha - September 9, 2008

dinesh wrote …..
>>An example of a daemon thread that is continuously running is the garbage collector thread. This thread is provided by the JVM.

garbage collection is handled by a daemon thread that means when ever no thread is active that will run.

Thats the reason why we are not bothering about the memory lick as like c in Java….

7. shrikant - October 8, 2008

Daemon theade is the from which we can create the chaild thread . Once the Daemon thread running then then its chaile thread also running , if the daemon thread is thread then all the child thread of the daemon thead to be dead.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: