what is deamon thread in c#?
what is deamon thread in c#?
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.
Munesh SharmaPosted Jul 1, 2015, 11:56 AM
A Deamon 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 Deamon Threads that are still running are automatically halted and the application terminates.
Sujeet SumanPosted Jul 1, 2015, 11:35 AM