Default threads like, DestroyJavaVM, Reference Handler, Signal Dispatcher(默认线程,如 DestroyJavaVM、Reference Handler、Signal Dispatcher)
问题描述
在我自己的分析器上工作,我想解释一下我所看到的.即使在最简单的程序中,也会始终出现一些默认线程:
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:
- 销毁JavaVM
- 信号调度器
- 终结器
- 引用处理程序
虽然他们的名字很自证,但我想了解更多信息.这些线程似乎没有记录,是否有人知道挖掘这些信息的来源,甚至确切地知道这些线程的作用?
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?
推荐答案
- DestroyJavaVM 是在程序中卸载 Java VM 的线程出口.大多数情况下,它应该等待,直到您的虚拟机出现末日.
- Signal Dispatcher 是一个线程,用于处理操作系统发送到 jvm 的本机信号.
- 终结器线程从终结队列中拉取对象并调用它的终结方法.
- Reference Handler 是一个高优先级线程,用于将待处理的 参考文献.它在 java.lang.ref.References.java 中定义
- DestroyJavaVM is a thread that unloads the Java VM on program exit. Most of the time it should be waiting, until apocalypse of your VM.
- Signal Dispatcher is a thread that handles the native signals sent by the OS to your jvm.
- Finalizer threads pull objects from the finalization queue and calls it finalize method.
- Reference Handler is a high-priority thread to enqueue pending References. Its defined in java.lang.ref.References.java
这篇关于默认线程,如 DestroyJavaVM、Reference Handler、Signal Dispatcher的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:默认线程,如 DestroyJavaVM、Reference Handler、Signal Dispatcher
基础教程推荐
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- 降序排序:Java Map 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01