当前位置:网站首页>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 computer network security and management] Lecture 2 password technology
- 005_redis_set集合
- 一个国产图像分割项目重磅开源!
- [nk]牛客月赛48 D
- Kubernetes cluster installation based on Kirin SP10 server version
- 高效音乐格式转换工具Music Converter Pro
- Program design: l1-49 ladder race, allocation of seats (simulation), Buxiang pill hot
- C语言中*与&的用法与区别 以及关键字static和volatile 的含义
- IAR embedded development stm32f103c8t6 Lighting LED
- 每日一题冲刺大厂第十六天 NOIP普及组 三国游戏
猜你喜欢

PTA: praise the crazy devil

How many steps are there from open source enthusiasts to Apache directors?

hack the box optimum靶机
![[assembly language] understand](/img/73/2483bca93714e378ff5eef18bddcd1.jpg)
[assembly language] understand "stack" from the lowest point of view

全局、獨享、局部路由守衛

双亲委派模型【理解】

从开源爱好者到 Apache 董事,一共分几步?

想体验HomeKit智能家居?不如来看看这款智能生态

If 404 page is like this | daily anecdotes

Daily question (April 22, 2022) - rotation function
随机推荐
On LAN
解决 注册谷歌邮箱 gmail 手机号无法用于验证
程序设计天梯赛 L1-49 天梯赛分配座位(模拟),布响丸辣
hack the box optimum靶机
007_Redis_Jedis连接池
Tp6 Alibaba Cloud SMS Window message Curl Error 60: SSL Certificate Problem: Unable to get local issuer Certificate
下载正版Origin Pro 2022 教程 及 如何 激 活
Web learning record (medium)
【2019-CVPR-3D人体姿态估计】Fast and Robust Multi-Person 3D Pose Estimation from Multiple Views
在MySQL Workbench中执行外部的SQL脚本,报错
Download the genuine origin Pro 2022 tutorial and how to activate it
使用Go语言构建Web服务器
MySQL C language connection
Talk about current limiting
IAR embedded development stm32f103c8t6 Lighting LED
The usage and difference of * and & in C language and the meaning of keywords static and volatile
Applet canvas canvas half ring
If 404 page is like this | daily anecdotes
Talk about biology live broadcast: Dr. Wang Ziyuan, a lake view biology, exploring hepatitis B with gene therapy
智能辅助功能丰富,思皓X6安全配置曝光:将于4月23日预售