当前位置:网站首页>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中读取速度最快的一个单元

特点
- 线程私有(每个线程均有一个自己的程序计数器)
- 不存在内存溢出
边栏推荐
- JSP and filter
- 父亲和篮球
- AI scores 81 in high scores. Netizens: AI model can't avoid "internal examination"!
- Today's sleep quality record 77 points
- Kivy教程之 如何通过字符串方式载入kv文件设计界面(教程含源码)
- PowerPoint tutorial, how to save a presentation as a video in PowerPoint?
- 道路建设问题
- Which securities company has the lowest Commission for opening an account online? I want to open an account. Is it safe for the online account manager to open an account
- Complete deep neural network CNN training with tensorflow to complete picture recognition case 2
- 全面发展数字经济主航道 和数集团积极推动UTONMOS数藏市场
猜你喜欢

使用tensorflow进行完整的DNN深度神经网络CNN训练完成图片识别案例

Halcon combined with C # to detect surface defects -- Halcon routine autobahn

Tutoriel PowerPoint, comment enregistrer une présentation sous forme de vidéo dans Powerpoint?

logback日志的整理

Smbms project
[email protected] chianxin: Perspective of Russian Ukrainian cyber war - Security confrontation and sanctions g"/>Start signing up CCF C ³- [email protected] chianxin: Perspective of Russian Ukrainian cyber war - Security confrontation and sanctions g

掌握Cypress命令行选项,是真正掌握Cypress的基础

PowerPoint 教程,如何在 PowerPoint 中將演示文稿另存為視頻?

Complete deep neural network CNN training with tensorflow to complete picture recognition case 2

【电脑插入U盘或者内存卡显示无法格式化FAT32如何解决】
随机推荐
编程内功之编程语言众多的原因
【BW16 应用篇】安信可BW16模组与开发板更新固件烧录说明
Spark实战1:单节点本地模式搭建Spark运行环境
The latest BSC can pay dividends. Any B usdt Shib eth dividend destruction marketing can
MySQL
Unity render streaming communicates with unity through JS
Resource Cost Optimization Practice of R & D team
Universal dividend source code, supports the dividend of any B on the BSC
Mobile phones and computers can be used, whole people, spoof code connections, "won't you Baidu for a while" teach you to use Baidu
PhpMyAdmin stage file contains analysis traceability
Unity embeddedbrowser browser plug-in event communication
Mycms we media mall v3.4.1 release, user manual update
8 Queen question
Complete deep neural network CNN training with tensorflow to complete picture recognition case 2
Road construction issues
untiy世界边缘的物体阴影闪动,靠近远点的物体阴影正常
静态链表(数组的下标代替指针)
【556. 下一个更大元素 III】
KEIL5出现中文字体乱码的解决方法
Logback log sorting