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

特点
- 线程私有(每个线程均有一个自己的程序计数器)
- 不存在内存溢出
边栏推荐
- NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
- 用户和组命令练习
- Multi table query of MySQL - multi table relationship and related exercises
- Shell timing script, starting from 0, CSV format data is regularly imported into PostgreSQL database shell script example
- Task6: using transformer for emotion analysis
- 道路建设问题
- PowerPoint tutorial, how to save a presentation as a video in PowerPoint?
- 实现CNN图像的识别和训练通过tensorflow框架对cifar10数据集等方法的处理
- Mobile phones and computers can be used, whole people, spoof code connections, "won't you Baidu for a while" teach you to use Baidu
- MySQL_ JDBC
猜你喜欢

Resolved (error in viewing data information in machine learning) attributeerror: target_ names

When updating mysql, the condition is a query

8 Queen question

MySQL installation, uninstallation, initial password setting and general commands of Linux

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

RichView TRVStyle ListStyle 列表样式(项目符号编号)

研发团队资源成本优化实践

JSP and filter

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

User and group command exercises
随机推荐
Resolved (error in viewing data information in machine learning) attributeerror: target_ names
Error running 'application' in idea running: the solution of command line is too long
Logseq evaluation: advantages, disadvantages, evaluation, learning tutorial
MySQL functions and related cases and exercises
Asp.Net Core1.1版本没了project.json,这样来生成跨平台包
Flutter dynamic | fair 2.5.0 new version features
Unity Render Streaming通过Js与Unity自定义通讯
R language uses the data function to obtain the sample datasets available in the current R environment: obtain all the sample datasets in the datasets package, obtain the datasets of all packages, and
阿南的疑惑
[机缘参悟-37]:人感官系统的结构决定了人类是以自我为中心
Mycms we media mall v3.4.1 release, user manual update
Libuv库 - 设计概述(中文版)
Logback log sorting
Mobile phones and computers can be used, whole people, spoof code connections, "won't you Baidu for a while" teach you to use Baidu
MapReduce implements matrix multiplication - implementation code
刚毕业的欧洲大学生,就能拿到美国互联网大厂 Offer?
Brief analysis of tensorboard visual processing cases
When updating mysql, the condition is a query
服务器硬盘冷迁移后网卡无法启动问题
8 Queen question