文章目录
环境

运行时数据区概览图

线程隔离的数据区
The pc Register
The Java Virtual Machine can support many threads of execution at once (JLS §17)Each Java Virtual Machine thread has its own pc (program counter) register.At any point, each Java Virtual Machine thread is executing the code of a single method, namely the current method (§2.6) for that thread. If that method is not native, the pc register contains the address of the Java Virtual Machine instruction currently being executed.
java虚拟机可以支持多个线程同时执行。每个线程有自己的程序计数器。在任何时刻,每个java虚拟机都在执行一个方法,就是当前线程正在执行的方法。如果这个方法不是native方法

最低0.47元/天 解锁文章
611

被折叠的 条评论
为什么被折叠?



