WildWind03
WildWind03

Reputation: 323

What does thread "Thread 2" do in JavaFX application?

When I create a simple non-multithreading JavaFX application and start it, the application creates some threads (JavaFX Application Thread, JavaFX-Launcher and others). Most of these threads are named but in all my JavaFX application there is one unnamed thread ("Thread-1" or "Thread-2"). I definitely don't create my own threads because I tried to start Hello World JavaFX application (generated by IDEA) and there is "Thread-2" in it too. What does this thread do? Why is it unnamed?

P.S. I use VisualVM to see threads in a process.

Upvotes: 0

Views: 200

Answers (1)

WildWind03
WildWind03

Reputation: 323

Thanks all the commentators. They persuaded me that existing such threads as "Thread-1" or "Thread-2" depends on JavaFX and JVM implementations, and there is no reason for me to know why such threads exist.

Upvotes: 2

Related Questions