Developer community
+1 vote
36 views
asked by Expert (13.2k points) 29 44 63 | 36 views

2 Answers

0 votes
A daemon thread is a thread, that does not prevent the JVM from exiting when the program finishes but the thread is still running. An example for a daemon thread is the garbage collection.
You can use the setDaemon() method to change the Thread daemon properties.
 
 
answered by Guru (24.6k points) 32 58 93
0 votes
Theards which are running on the background are called deamon threads. daemon thread is a thread which doesn't give any chance to run other threads once it enters into the run state it doesn't give any chance to run other threads. Normally it will run forever, but when all other non-daemon threads are dead, daemon thread will be killed by JVM .   
 
answered by Guru (27.1k points) 35 53 114

Related questions

0 votes
1 answer
asked by john Guru (27.1k points) 35 53 114 | 30 views
0 votes
2 answers
asked by sara Guru (24.6k points) 32 58 93 | 39 views
0 votes
1 answer
asked by rajesh Guru (39.1k points) 11 24 38 | 8 views
0 votes
1 answer
asked by john Guru (27.1k points) 35 53 114 | 17 views
0 votes
1 answer
asked by smith Geek (15.3k points) 19 43 69 | 40 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

3,754 questions
4,046 answers
117 comments
10,709 users