当前位置:网站首页>JVM系列——概述,程序计数器day1-1
JVM系列——概述,程序计数器day1-1
2022-07-03 13:17:00 【简明编程】
JVM系列——概述,程序计数器day1-1
JVM(Java虚拟机)
Java二进制字节码的运行环境
优点(特点)
- 一次编写,处处运行,实现跨端
- 内存管理机制(垃圾自动回收)
- 数组下标越界检查
- 多态
JVM,JRE,JDK
JVM:运行环境
JRE:JVM+Java基础类库
JDK:JVM+Java基础类库+编译工具
JVM的用处
- 有助于理解底层实现原理
- 走向框架,优化程序,解决问题
常见的JVM
JVM仅是一套规范
JVM三大核心部分
- ClassLoader:类加载器
- JVM内存结构(方法区,堆,栈,程序计数器,本地方法栈)
- 执行引擎(解释器,即时编译器,垃圾回收)
程序计数器
Program Counter Register程序计数器((寄存器)
是Java对程序硬件的屏蔽与抽象
程序执行基础流程
将Java源代码编译成为二进制字节码(JVM指令),等二进制字节码经过解释器之后形成机器码,最后让CPU执行
作用
记住下一条JVM指令的执行地址,根据地址信息按照顺序进行执行
若没有程序计数器,则不知道下一条该执行哪一条命令
程序计数器在物理上依赖寄存器实现
寄存器是CPU中读取速度最快的一个单元

特点
- 线程私有(每个线程均有一个自己的程序计数器)
- 不存在内存溢出
边栏推荐
- [quantitative trading] permanent portfolio, turtle trading rules reading, back testing and discussion
- Flutter动态化 | Fair 2.5.0 新版本特性
- The shortage of graphics cards finally came to an end: 3070ti for more than 4000 yuan, 2000 yuan cheaper than the original price, and 3090ti
- ThreadPoolExecutor realizes multi-threaded concurrency and obtains the return value (elegant and concise way)
- NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
- Asp. Net core1.1 without project JSON, so as to generate cross platform packages
- 软件测试工作那么难找,只有外包offer,我该去么?
- Static linked list (subscript of array instead of pointer)
- SQL Injection (GET/Select)
- Servlet
猜你喜欢
![[quantitative trading] permanent portfolio, turtle trading rules reading, back testing and discussion](/img/3b/28327bbf5eb19254f03500a41e2adb.jpg)
[quantitative trading] permanent portfolio, turtle trading rules reading, back testing and discussion

The solution of Chinese font garbled code in keil5

CVPR 2022 | 美团技术团队精选6篇优秀论文解读
![[sort] bucket sort](/img/52/95514b5a70cea75821883e016d8adf.jpg)
[sort] bucket sort

太阳底下无新事,元宇宙能否更上层楼?

106. How to improve the readability of SAP ui5 application routing URL

Flutter dynamic | fair 2.5.0 new version features

挡不住了,国产芯片再度突进,部分环节已进到4nm

mysql更新时条件为一查询

Kivy教程之 盒子布局 BoxLayout将子项排列在垂直或水平框中(教程含源码)
随机推荐
Asp. Net core1.1 without project JSON, so as to generate cross platform packages
Mobile phones and computers can be used, whole people, spoof code connections, "won't you Baidu for a while" teach you to use Baidu
Students who do not understand the code can also send their own token, which is easy to learn BSC
Start signing up CCF C ³- [email protected] chianxin: Perspective of Russian Ukrainian cyber war - Security confrontation and sanctions g
Golang — 命令行工具cobra
Brief analysis of tensorboard visual processing cases
【556. 下一个更大元素 III】
Replace the GPU card number when pytorch loads the historical model, map_ Location settings
KEIL5出现中文字体乱码的解决方法
Sequence table (implemented in C language)
Unity render streaming communicates with unity through JS
Swiftui development experience: the five most powerful principles that a programmer needs to master
物联网毕设 --(STM32f407连接云平台检测数据)
软件测试工作那么难找,只有外包offer,我该去么?
Ocean CMS vulnerability - search php
Complete DNN deep neural network CNN training with tensorflow to complete image recognition cases
父亲和篮球
The latest BSC can pay dividends. Any B usdt Shib eth dividend destruction marketing can
全面发展数字经济主航道 和数集团积极推动UTONMOS数藏市场
Logseq 评测:优点、缺点、评价、学习教程