What is the difference between a daemon thread and a user thread?

What is the difference between a daemon thread and a user thread?



Answer: A user thread is initiated directly by the application, the main thread being one such thread. A daemon thread runs in the background supporting user thread activity, which is why they automatically shut down once the last user thread closes.


Learn More :

Multithreading and Concurrent Processing

Learn More Multiple Choice Question :