What is a daemon thread? - Cracking the Java Coding Interview

preview_player
Показать описание
Cracking the #Java #Coding #Interview - Question 99: What is a daemon thread?
Рекомендации по теме
Комментарии
Автор

Thanks José for your clearness. Thread is very tricky part of the langage.

Talaria.School
Автор

Please correct the captions in this video. José correctly says "A JVM shuts down if it does not have any more non-daemon thread running". Therefore the caption "Prevents the shutdown of your JVM" is incorrect regarding the "What is a daemon thread?" interview question. It should read "Does not prevent the shutdown of your JVM" and yes there is also a "d" in shutdown.

alexanders
Автор

you are describing non Daemon threads when saying prevents the shutdown of your JVM. but the video is about daemon thread. so it looks odd

mixerro
Автор

I didn't understand any part of your explanation. But at least I'm forcing my brain to work

marcelofonseca
Автор

What is the default when creating a Thread? Daemon or not?

Deplissee