Hi buddies,
What is Daemon Thread in java? Please give an example of Daemon Thread.
Thanks!
What is Daemon Thread in java? Please give an example of Daemon Thread.
Thanks!
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satya KarkiPosted Nov 20, 2021, 3:14 PM
Rijwan AnsariPosted Nov 20, 2021, 3:12 PM
DarilPosted Nov 20, 2021, 8:35 AM
The daemon threads function is to provide services to the user threads. These threads have low priority.
The high priority threads are the user threads.
They are called only when the user threads are running.
They are mostly used for garbage collection like clearing garbage cache memory.
The thread that is created will inherit the created thread's daemon status.
After creating a thread object we can call the daemon method. And also the thread should be idle
AartiPosted Nov 17, 2011, 4:28 AM
Sam HobbsPosted Aug 3, 2011, 2:05 PM
Guest UserPosted Aug 3, 2011, 11:16 AM