Non-Daemon And Daemon Threads in Java

Опубликовано: 12 Июнь 2025
на канале: Marcio Endo
93
10

What's the difference between a non-daemon and a daemon thread in Java?

Does it matter if the thread is a platform thread or if it is a virtual thread?

This is what we'll discuss in the latest video.

Chapters
00:00 Introduction
00:11 Example #01: main thread only
01:14 Example #02: starting a second thread
01:53 Example #03: thread that runs indefinitely
02:20 Example #04: marking the thread as a daemon thread
03:08 When does the JVM stops executing?
03:31 What about virtual threads?
04:28 Thank you for watching

Source code used in this video:
https://gist.github.com/marcioendo/da...


На этой странице сайта вы можете посмотреть видео онлайн Non-Daemon And Daemon Threads in Java длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Marcio Endo 12 Июнь 2025, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 93 раз и оно понравилось 10 зрителям. Приятного просмотра!