在 Open JDK note 中我找到了这个精确的注释
Creates the VM using JNI_CreateJavaVM in a newly created thread (non primordial thread). Note: creating the VM in the primordial thread greatly reduces the ability to customize the VM, for example the stack size on Windows, and many other limitations
在谷歌中找不到太多关于这方面的文献!! :哦。请指教。
最佳答案
当操作系统启动一个新进程时,只有一个线程存在。这是将进入应用程序的 native main
函数的线程,然后可能会启动更多线程。这个初始的单线程就是“原始线程”;它似乎不是一个正式的术语,而是一个短语,其含义应该从上下文中得出。
可以理解的是,新创建的线程比进程启动时已经存在的线程更容易定制。
另外:我发现了一个blog entry解释你的问题。值得庆幸的是,它的第一句话给出了博客条目其余部分的定义:
A primordial thread is the first thread created by the Operating System kernel when a process is created.
关于java - 原始线程与非原始线程之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21583745/