I think such threads are similar to other resources, such as heap space, the stack that the JVM provided to every Java application. And the client must work correctly in different threads. Such as Swing related stuff, only in the event dispatch thread.
The common JVM threads mentioned by @Patrick are generated (JVM) during initialization at runtime before the user program starts execution and completes maintenance / housekeeping tasks in the JVM.
Customer customer threads generated from application code cannot directly control system-level threads. Swing-related threads will begin when Swing-related code is not executed for all types of Java programs.
Am I right about this? Where can I find an authoritative link? The JVM specification does not seem to have this.
In addition to the links mentioned by @Patrick, check out the following link:
Runtimeoverview
And if I never use the event dispatch thread, for example, in a console application, can I disable it to save some processor cycle?
An event dispatch theme is created if the Swing application is running. You can control threads created by the user application, not JVM runtime threads.
source share