I see there are six thread types implemented into the HotSpot JVM: VMThread, CGCThread, PGCThread, JavaThread, CompilerThread and WatcherThread. However I don't know which thread type is doing what exactly. Here is what I understood so far:
- VMThread: run VM tasks like the garbage collector.
- CGCThread: Concurrent garbage collector.
- PGCThread: Parallel garbage collector (differences with CGC?).
- JavaThread: Program's threads, I guess.
- CompilerThread: A thread for the compiler?
- WatcherThread: ?
Additional question: what about other JVMs?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…