当前位置:网站首页>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 .
边栏推荐
- AQS details
- Build domain environment (win)
- Sword finger offer 23 - print binary tree from top to bottom
- Detailed explanation of three ways of HTTP caching
- Meituan dynamic thread pool practice ideas, open source
- Attack and defense world misc practice area (GIF lift table ext3)
- [err] 1055 - expression 1 of order by clause is not in group by clause MySQL
- HackMyvm靶机系列(5)-warez
- Only 40% of the articles are original? Here comes the modification method
- Load balancing ribbon of microservices
猜你喜欢
HackMyvm靶机系列(4)-vulny
1143_ SiCp learning notes_ Tree recursion
Hackmyvm Target Series (3) - vues
Hackmyvm target series (7) -tron
Low income from doing we media? 90% of people make mistakes in these three points
Sqqyw (indifferent dot icon system) vulnerability recurrence and 74cms vulnerability recurrence
xray与burp联动 挖掘
Meituan dynamic thread pool practice ideas, open source
Nuxtjs quick start (nuxt2)
Hackmyvm target series (1) -webmaster
随机推荐
Spot gold prices rose amid volatility, and the rise in U.S. prices is likely to become the key to the future
【Numpy和Pytorch的数据处理】
Canvas foundation 1 - draw a straight line (easy to understand)
Network layer - simple ARP disconnection
Build domain environment (win)
Intranet information collection of Intranet penetration (2)
[data processing of numpy and pytoch]
链队实现(C语言)
Mathematical modeling idea of 2022 central China Cup
On the idea of vulnerability discovery
中间件漏洞复现—apache
How to understand the difference between technical thinking and business thinking in Bi?
Strengthen basic learning records
Which is more advantageous in short-term or long-term spot gold investment?
captcha-killer验证码识别插件
HackMyvm靶机系列(4)-vulny
UGUI—Text
"Gold, silver and four" job hopping needs to be cautious. Can an article solve the interview?
Yugu p1012 spelling +p1019 word Solitaire (string)
《英特尔 oneAPI—打开异构新纪元》