当前位置:网站首页>JVM runtime data area (I)
JVM runtime data area (I)
2022-04-23 02:33:00 【Flying Holland】
One 、 basic
- The red part : Will be created as the virtual machine starts , Destroy with virtual machine exit
- The gray part : One to one correspondence with thread , As the thread starts and ends , And end with it
- One Runtime, Corresponding to one JVM virtual machine


Two 、 Concept
1. Threads
1. A thread is a running unit in a program , JVM Allow an application to have multiple threads executing in parallel
2. Each thread is mapped directly to the local thread of the operating system
2.1 When one java When the thread is ready , At this point, a local thread of the operating system will also be created
2.2 java After thread execution is terminated , Local threads also recycle
3. The operating system is responsible for scheduling threads to any available cpu On
Once the local thread is initialized successfully , Will call java In thread run()
2. Program counter
2.1 Concept
- PC register , PC Register, Program Counter Register, Instruction counter
- Thread code instructions : Save and retrieve again through the program counter , Is used for thread switching
- A thread will contain a program counter , Record the number of lines executed by code instructions , It belongs to thread private
- The storage space is small , Almost negligible , It is also the fastest
- non-existent OOM
At any time, a thread has only one method to execute ( The current method )
Store what the current thread is executing java Methodical jvm Instruction address , If you execute native Method , It is undefined


版权声明
本文为[Flying Holland]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230228465539.html
边栏推荐
- 电源电路设计原来是这么回事
- [XJTU计算机网络安全与管理]第二讲 密码技术
- 全局、獨享、局部路由守衛
- 假如404页面是这样的 | 每日趣闻
- 一个国产图像分割项目重磅开源!
- 从0开始开发一个chrome插件(2)
- Program design: l1-49 ladder race, allocation of seats (simulation), Buxiang pill hot
- Hyperscan -- 2 compilation
- 打靶narak
- [suggestion collection] hematemesis sorting out golang interview dry goods 21 questions - hanging interviewer-1
猜你喜欢

【Chrome扩展程序】content_script的跨域问题
![[xjtu Computer Network Security and Management] session 2 Cryptographic Technology](/img/b0/263e8dcbfeb2ce9f504a9c8eb76b07.png)
[xjtu Computer Network Security and Management] session 2 Cryptographic Technology

每日一题(2022-04-22)——旋转函数
![[XJTU计算机网络安全与管理]第二讲 密码技术](/img/b0/263e8dcbfeb2ce9f504a9c8eb76b07.png)
[XJTU计算机网络安全与管理]第二讲 密码技术

MySQL JDBC programming

Kubernetes cluster installation based on Kirin SP10 server version

PTA: 点赞狂魔

Hack the box optimum

A domestic image segmentation project is heavy and open source!

RT_Thread自问自答
随机推荐
tp6阿裏雲短信 window 報 cURL error 60: SSL certificate problem: unable to get local issuer certificate
PTA: 点赞狂魔
打靶narak
Data warehouse construction table 111111
从开源爱好者到 Apache 董事,一共分几步?
Talk about biology live broadcast: Dr. Wang Ziyuan, a lake view biology, exploring hepatitis B with gene therapy
16、 Anomaly detection
LeetCode 349. Intersection of two arrays (simple, array) Day12
小程序 canvas 画布半圆环
电源电路设计原来是这么回事
IAR embedded development stm32f103c8t6 Lighting LED
Fast and robust multi person 3D pose estimation from multiple views
006_ redis_ Jedis quick start
SQL server2019无法下载所需文件,这可能表示安装程序的版本不再受支持,怎么办了
想体验HomeKit智能家居?不如来看看这款智能生态
PTA: praise the crazy devil
89 logistic regression user portrait user response prediction
MySQL C language connection
IAR嵌入式开发STM32f103c8t6之点亮LED灯
数仓建表111111