当前位置:网站首页>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 .
边栏推荐
- Want to ask, how to choose a securities firm? Is it safe to open an account online?
- Pytorch linear regression
- Principle of persistence mechanism of redis
- Complete activity switching according to sliding
- GPS數據格式轉換[通俗易懂]
- MySQL index (1)
- MySQL data table operation DDL & data type
- 多表操作-子查询
- Wireless WiFi learning 8-channel transmitting remote control module
- 【TFLite, ONNX, CoreML, TensorRT Export】
猜你喜欢
codeforces每日5题(均1700)-第五天
[cloud native | kubernetes] actual battle of ingress case (13)
查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
Yolov 5 Target Detection Neural Network - Loss Function Calculation Principle
Redis cluster (master-slave) brain crack and solution
Redirection of redis cluster
MySQL transaction
【pytorch 修改预训练模型:实测加载预训练模型与模型随机初始化差别不大】
Liunx prohibit Ping explain the different usage of traceroute
Troubleshooting of high memory usage of redis in a production environment
随机推荐
MySQL basic operation -dql
How can beginners learn flutter efficiently?
跨平台(32bit和64bit)的 printf 格式符 %lld 输出64位的解决方式
Application of a class of identities (vandermond convolution and hypergeometric functions)
【load dataset】
Codeforces Round #804 (Div. 2)
Semantic segmentation experiment: UNET network /msrc2 dataset
只是巧合?苹果 iOS16 的神秘技术竟然与中国企业 5 年前产品一致!
Understand kotlin from the perspective of an architect
信息服务器怎么恢复,服务器数据恢复怎么弄[通俗易懂]
ACID事务理论
Two minutes will take you to quickly master the project structure, resources, dependencies and localization of flutter
MySQL storage engine
【TFLite, ONNX, CoreML, TensorRT Export】
Want to ask, how to choose a securities firm? Is it safe to open an account online?
Open3d mesh (surface) coloring
【ijkplayer】when i compile file “compile-ffmpeg.sh“ ,it show error “No such file or directory“.
【PyTorch预训练模型修改、增删特定层】
Simple production of wechat applet cloud development authorization login
HiEngine:可媲美本地的云原生内存数据库引擎