Working on a profiler of my own, I would like to explain what I see. There are some default threads which always appear, even in the simplest program:
Although their names are quite self-documenting, I would like to get a little bit more information. It seems these threads are not documented, does someone know a source to dig for these information or even knows exactly what these threads do?
Once main completes, the JVM is told to shut down using a DestroyJavaVM thread which waits for all non-daemon threads to complete before doing its work. This is to ensure that any non-daemon threads you create run to completion before the JVM is torn down.
“Reference Handler” is the Human-readable name of the thread. #2 is the unique ID associated with each Thread object. “daemon” is a tag denoting if the thread is a daemon thread. “prio=10” is the numeric priority of the Java thread.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With