当前位置:网站首页>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 .
边栏推荐
- Yugu p1012 spelling +p1019 word Solitaire (string)
- Only 40% of the articles are original? Here comes the modification method
- Experiment 6 inheritance and polymorphism
- 内网渗透之内网信息收集(二)
- Attach the simplified sample database to the SQLSERVER database instance
- Windows platform mongodb database installation
- Mixlab unbounded community white paper officially released
- 强化学习基础记录
- Middleware vulnerability recurrence Apache
- Apache APIs IX has the risk of rewriting the x-real-ip header (cve-2022-24112)
猜你喜欢
随机推荐
Apache APIs IX has the risk of rewriting the x-real-ip header (cve-2022-24112)
Strengthen basic learning records
HackMyvm靶机系列(5)-warez
Experiment 4 array
JDBC看这篇就够了
Library management system
Meituan dynamic thread pool practice ideas, open source
HackMyvm靶机系列(4)-vulny
强化学习基础记录
"Gold, silver and four" job hopping needs to be cautious. Can an article solve the interview?
7-14 error ticket (PTA program design)
. How to upload XMIND files to Jinshan document sharing online editing?
JS several ways to judge whether an object is an array
HackMyvm靶机系列(2)-warrior
1143_ SiCp learning notes_ Tree recursion
[err] 1055 - expression 1 of order by clause is not in group by clause MySQL
Nuxtjs quick start (nuxt2)
Hackmyvm target series (6) -videoclub
SQL注入
附加简化版示例数据库到SqlServer数据库实例中









