Thread
What is daemon thread in C#?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Techoschool5 reputationPosted Jul 2, 2015, 9:40 AM EDT
A Daemon Thread will run until it completes or until all User Threads have completed. Daemon threads make excellent "behind the scenes" processes for things that must happen in the background but can be terminated when the application ends- garbage collection is a great example of a process that could be handled with a daemon thread. Once all User Threads complete, any Daemon Threads that are still running are automatically halted and the application terminates. Hope this will help you !!