当前位置:网站首页>JVM memory model concept
JVM memory model concept
2022-07-06 14:22:00 【xmh-sxh-1314】
JVM The memory model is divided into virtual machine stack , Pile up , Method area , Program counter , Five parts of the local method stack .
Java The virtual machine stack is the same as the program counter ,Java Virtual machine stack (Java Virtual Machine Stacks) It's also thread private , It has the same life cycle as a thread .
Java Heap for most applications ,Java Pile up (Java Heap) yes Java The largest chunk of memory managed by a virtual machine .Java The heap is an area of memory Shared by all threads , Created when the virtual machine starts .
Method area (Method Area) And Java Pile up , Is an area of memory Shared by each thread , It is used to store class information that has been loaded by the virtual machine 、 Constant 、 Static variables 、 Real time compiler compiled code and other data .
Program counter (Program Counter Register) It's a small amount of memory , Its function can be seen
It is the line number indicator of the bytecode executed by the current thread .
Native Method Stack (Native Method Stacks) It's very similar to what the virtual machine stack does , The difference is that the virtual machine stack executes for the virtual machine Java Method ( That's bytecode ) service , The local method stack is used by the virtual machine Native Method service .
JVM The advantages of memory model
Built in memory based concurrency model : Thread mechanism
Synchronization lock Synchronization
A large number of thread safe library packages support
Memory based concurrency mechanism , Flexible granularity control , Flexibility is higher than database lock .
Multi core parallel computing model
Thread based asynchronous model .
边栏推荐
- Hackmyvm target series (3) -visions
- Mathematical modeling idea of 2022 central China Cup
- Brief introduction to XHR - basic use of XHR
- Intranet information collection of Intranet penetration (4)
- HackMyvm靶机系列(1)-webmaster
- 网络基础之路由详解
- Experiment 7 use of common classes
- 外网打点(信息收集)
- Hackmyvm target series (1) -webmaster
- xray與burp聯動 挖掘
猜你喜欢
《统计学》第八版贾俊平第十三章时间序列分析和预测知识点总结及课后习题答案
Wei Shen of Peking University revealed the current situation: his class is not very good, and there are only 5 or 6 middle-term students left after leaving class
攻防世界MISC练习区(SimpleRAR、base64stego、功夫再高也怕菜刀)
[VMware abnormal problems] problem analysis & Solutions
HackMyvm靶機系列(3)-visions
Strengthen basic learning records
Attach the simplified sample database to the SQLSERVER database instance
Poker game program - man machine confrontation
1143_ SiCp learning notes_ Tree recursion
Harmonyos application development -- address book management system telmanagesys based on listcontainer [phonebook][api v6]
随机推荐
[three paradigms of database] you can understand it at a glance
Attack and defense world misc practice area (GIF lift table ext3)
xray與burp聯動 挖掘
HackMyvm靶机系列(1)-webmaster
Hackmyvm target series (1) -webmaster
外网打点(信息收集)
Only 40% of the articles are original? Here comes the modification method
DVWA (5th week)
captcha-killer验证码识别插件
Build domain environment (win)
【MySQL-表结构与完整性约束的修改(ALTER)】
Attach the simplified sample database to the SQLSERVER database instance
Canvas foundation 2 - arc - draw arc
Applet Web Capture -fiddler
7-14 error ticket (PTA program design)
Hcip -- MPLS experiment
2022华中杯数学建模思路
Load balancing ribbon of microservices
JS several ways to judge whether an object is an array
Network technology related topics