What Is A Daemon Flag? Is It The Same As A Daemon Thread?


1 Answers

Sana Rashid Profile
Sana Rashid answered
In Java world daemon thread can be named, any thread because in runtime environment it work and provide support in the background, continuously.
While the daemon flag is the one of the two most priority thread. The
priority of the thread is the most important and the other one is the daemon
flag. In Java Virtual Machine (JVM) is only daemon threads are running that
according the rule scheduler’s basic will exit. New threads form from the daemon
flag and the priority will inherit its quality. New threads inherit the
priority and daemon flag from the thread that created it. So like this the
whole process works.

you have understood the difference

Answer Question