Is the thread initiated by the daemon thread also a daemon thread?

I am currently working with daemon threads in Java. Is the thread initiated by the daemon thread the daemon thread itself? I personally think so, but I'm not sure.

+4
source share
3 answers

Yes, by default, any thread created from a daemon thread is also a daemon thread.

In any case, you can always check this, very easily - with isDaemon() .

+6
source

yes, we can make the hierarchy of the daemon flow one belonging to the other ..........

-one
source

If the thread created by the default daemon thread is a daemon thread.
Conversely, if a thread created by a user thread, it is a user thread.
Read more about the Demon Themes video.

-one
source

Source: https://habr.com/ru/post/1393365/


All Articles