当前位置:网站首页>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 .
边栏推荐
- Time tools
- JS for循环 循环次数异常
- II. Data type
- 【主流Nivida显卡深度学习/强化学习/AI算力汇总】
- Hash tag usage in redis cluster
- [pytorch modifies the pre training model: there is little difference between the measured loading pre training model and the random initialization of the model]
- [yolov3 loss function]
- 无线WIFI学习型8路发射遥控模块
- MySQL index - extended data
- Embedded software architecture design - message interaction
猜你喜欢

The evolution of mobile cross platform technology

Simple production of wechat applet cloud development authorization login
![[singleshotmultiboxdetector (SSD, single step multi frame target detection)]](/img/c7/8ad64582e09683818171b625769f37.png)
[singleshotmultiboxdetector (SSD, single step multi frame target detection)]

How to clear floating?

Mongodb replica set

Check the debug port information in rancher and do idea remote JVM debug

Yolov 5 Target Detection Neural Network - Loss Function Calculation Principle

报错ModuleNotFoundError: No module named ‘cv2.aruco‘

Multi table operation - Auto Association query

July Huaqing learning-1
随机推荐
MySQL index - extended data
Ncp1342 chip substitute pn8213 65W gallium nitride charger scheme
Is investment and finance suitable for girls? What financial products can girls buy?
Conversion du format de données GPS [facile à comprendre]
HiEngine:可媲美本地的云原生内存数据库引擎
Yolov5 target detection neural network -- calculation principle of loss function
【TFLite, ONNX, CoreML, TensorRT Export】
mysql拆分字符串做条件查询
MySQL view
Acid transaction theory
PXE启动配置及原理
Time tools
1 plug-in to handle advertisements in web pages
Sentinel sentinel mechanism of master automatic election in redis master-slave
MySQL splits strings for conditional queries
Principle of redis cluster mode
Swift - add navigation bar
调查显示传统数据安全工具在60%情况下无法抵御勒索软件攻击
[loss functions of L1, L2 and smooth L1]
Automated test lifecycle