当前位置:网站首页>Learn memory management of JVM 01 - first memory
Learn memory management of JVM 01 - first memory
2022-07-05 12:15:00 【The king of early rising】
Catalog
The meaning and function of memory
From this one on .
Java virtual machine ——JVM Kicked off .
The main content of this article is a brief introduction to memory . And JVM irrelevant .
Computers have internal and external memory . External memory is our hard disk , Data and programs are stored in hard disk . If stored in memory , Shut it down and it should be gone .
In order to realize the calculation function , You need to put the data in the hard disk , Deliver to CPU. That is to say, the design of computer needs to realize the following process :
This transmission process can be realized in theory . But our actual transmission is as follows :
Why is that ? What is the meaning and function of memory ?
The meaning and function of memory
because CPU Computing data is much larger than reading and writing , direct External memory is transferred to CPU It will cause a lot of time to wait .
Memory reads and writes faster , And with the memory buffer , It can continuously transfer the data in the hard disk to the memory , Waiting to be used .
Why is memory faster
The storage form of memory is capacitance , Can read and write very fast .
Capacitors store charge , high voltage representative Binary 1 Low voltage representative 0
Realize analog circuit - > digital circuit : To make a 0 、1 Express
The knowledge about analog circuit and digital circuit belongs to the principle of computer composition , Don't go over here .
About caching
Caching is also to reduce CPU The waiting time of .
CPU Have three-level cache promotion CPU Interaction speed with memory .
for instance , hold Variable a Do it ten times a++
There are two ways at this time
Do it once +1 Then give it back to memory , Retake , add .
direct 10 Time +1, Return the final result .
Obviously the second is faster , Caching is the condition for the second way .
Okay , That's all for this article
Keep early hours , take care . King of early rising , I wish you good luck .
边栏推荐
- 你做自动化测试为什么总是失败?
- MySQL stored procedure
- Linux安装部署LAMP(Apache+MySQL+PHP)
- Master the new features of fluent 2.10
- MySQL regular expression
- Pytorch linear regression
- 1 plug-in to handle advertisements in web pages
- Intern position selection and simplified career development planning in Internet companies
- 互联网公司实习岗位选择与简易版职业发展规划
- Semantic segmentation experiment: UNET network /msrc2 dataset
猜你喜欢
[deploy pytoch project through onnx using tensorrt]
Error modulenotfounderror: no module named 'cv2 aruco‘
[calculation of loss in yolov3]
Understand kotlin from the perspective of an architect
The survey shows that traditional data security tools cannot resist blackmail software attacks in 60% of cases
Why learn harmonyos and how to get started quickly?
调查显示传统数据安全工具在60%情况下无法抵御勒索软件攻击
Use and install RkNN toolkit Lite2 on itop-3568 development board NPU
Check the debug port information in rancher and do idea remote JVM debug
Embedded software architecture design - message interaction
随机推荐
Application of a class of identities (vandermond convolution and hypergeometric functions)
Codeforces Round #804 (Div. 2)
[upsampling method opencv interpolation]
Understand kotlin from the perspective of an architect
mmclassification 训练自定义数据
Matlab label2idx function (convert the label matrix into a cell array with linear index)
MySQL storage engine
Reinforcement learning - learning notes 3 | strategic learning
Conversion du format de données GPS [facile à comprendre]
MySQL transaction
Why learn harmonyos and how to get started quickly?
[pytorch modifies the pre training model: there is little difference between the measured loading pre training model and the random initialization of the model]
Mmclassification training custom data
Halcon 模板匹配实战代码(一)
Why do you always fail in automated tests?
Check the debug port information in rancher and do idea remote JVM debug
Matlab superpixels function (2D super pixel over segmentation of image)
Riddle 1
POJ-2499 Binary Tree
【load dataset】