top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are Daemon threads and how can a thread be created as Daemon?

+2 votes
628 views
What are Daemon threads and how can a thread be created as Daemon?
posted Feb 25, 2014 by Vishvachi Tiwari

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Daemon thread's run in background and stops automatically the program is not running. Example
of a Daemon thread is ‘Garbage collector’. Garbage collector runs until some .NET code is
running or else it is idle.
One can make a thread Daemon by
Thread.Isbackground=true

answer Feb 25, 2014 by Atul Mishra
Similar Questions
0 votes

I heard the term "worker thread" and other types of threads such as "system thread" and "user thread".
For me a thread is nothing but a lite weight process and multi-threaded design is chosen for a software development when there are multiple task in the application/system and those tasks can be executed independently.
I want to know when these different terms are used like worker thread, user thread and system thread ?

...