I know that Deamon threads background threads. We can create our own daemon thread by calling setDaemon(true)
.
My question is: why and when do we need to create our thread as daemon thread?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…