JVM(二)native\程序计数器\方法区\栈\堆
学习视频链接,以示尊重:https://www.bilibili.com/video/BV1iJ411d7jS?p=4
一、native关键字
先举个例子:看一看线程类的start()方法:
public static void main(String[] args) {
new Thread().start();
}
public synchronized void start() {
/**
* This method is not invoked for the main method thread or "system"
* group threads created/set up by the VM. Any new functionality added
* to this method in the future may have to also be added to the VM.
*
* A zero status value corresponds to state "NEW".
*/
if (threadStatus != 0