How does the JVM use the operating system to create the thread?

Here I am trying to quickly learn a java thread. In which process does the JVM create the thread. Suppose if I create a thread in java, then how does the JVM create this thread? To whom will he send exicute? .. Which one is the basic process for this ...

+3
source share
3 answers

In fact, the Java Virtual Machine specification does not specify how threads should be handled by the JVM. There is only a high level description . The Sun JVM itself made changes in this regard: before Java 1.1, it used the so-called Green Threads , which are managed by the JVM itself. He later used his own threads, which the host operating system provides.

+2

JVM (, API Win32 CreateThread POSIX pthread_create)) JVM, Java- .

+6

There is a separate JVM process for each running Java application. Threads created by the application are created in this process.

+3
source

All Articles