不同的(HotSpot)JVM线程类型有什么作用? [英] What do the different (HotSpot) JVM thread types do?
本文介绍了不同的(HotSpot)JVM线程类型有什么作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我看到HotSpot JVM中实现了六种线程类型:VMThread,CGCThread,PGCThread,JavaThread,CompilerThread和WatcherThread。但是我不知道哪种线程类型正在做什么。这是我到目前为止所理解的:
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:运行垃圾收集器等VM任务。
- CGCThread:并发垃圾收集器。
- PGCThread:并行垃圾收集器(与CGC的区别?)。
- JavaThread:程序的线程,我想。 / li>
- CompilerThread:编译器的线程?
- WatcherThread:?
- 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: ?
其他问题:其他JVM怎么样?
Additional question: what about other JVMs?
推荐答案
您可以在 OpenJDK网站:
VM线程的主要种类如下:
The main kinds of VM threads are as follows:
- VM线程:VMThread的这个单例实例负责执行VM操作,这将在下面讨论
- 定期任务线程:WatcherThread的这个单例实例模拟计时器中断,用于在
内执行定期操作VM - GC线程:这些线程,不同类型,支持并行和并发垃圾收集
- 编译器线程:这些线程执行字节码到本机代码的运行时编译
- 信号调度她的线程:该线程等待进程指示信号并将它们分派给Java级信号处理方法
- VM thread: This singleton instance of VMThread is responsible for executing VM operations, which are discussed below
- Periodic task thread: This singleton instance of WatcherThread simulates timer interrupts for executing periodic operations within the VM
- GC threads: These threads, of different types, support parallel and concurrent garbage collection
- Compiler threads: These threads perform runtime compilation of bytecode to native code
- Signal dispatcher thread: This thread waits for process directed signals and dispatches them to a Java level signal handling method
您可能希望阅读整个线程管理段落,因为它会继续进一步解释,例如VM线程负责的是什么。
You might want to read the whole Thread Management paragraph since it continues further explanations, e.g. what the VM thread is responsible for.
这篇关于不同的(HotSpot)JVM线程类型有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文