当前位置:网站首页>Introduction to RT thread kernel (5) -- memory management
Introduction to RT thread kernel (5) -- memory management
2022-07-05 04:20:00 【Number and form】
Basic concepts
There are two kinds of storage space in computer system , One is internal storage space RAM( Ram ) Fast access , External storage space ROM( read-only memory ) Stable stored data .
Two memory management algorithms
Static memory allocation algorithm : Allocate memory blocks of the preset size during user initialization in the static memory pool , Ensure the reliability of the equipment, but consider the upper limit of memory , Memory efficiency is low , Efficient distribution and use
Dynamic memory allocation algorithm : Allocate memory blocks of the size specified by the user in the dynamic memory pool , High memory efficiency , Memory pools are prone to fragmentation
Dynamic memory management algorithm Small memory management algorithm and SLAB Memory management algorithm
Interface function of static memory management :
Initialize memory pool :rt_mp_init
Out of memory pool :rt_thread_detach
Create a memory pool :rt_thread_create
Delete memory pool :rt_thread_delete
Static memory application function :rt_mp_alloc
j Static memory release function :rt_mp_free
Common interface functions for dynamic memory management :
Memory heap system initialization :rt_system_heap_init
Allocate memory blocks :rt_malloc
Free memory block :rt_free
Reallocate memory blocks :rt_realloc
Allocate multiple memory blocks :rt_calloc
边栏推荐
- Decimal to hexadecimal
- Differences among 10 addressing modes
- American 5g open ran suffered another major setback, and its attempt to counter China's 5g technology has failed
- Rome chain analysis
- The scale of computing power in China ranks second in the world: computing is leaping forward in Intelligent Computing
- Bit operation skills
- Longyuan war "epidemic" 2021 network security competition web easyjaba
- Use Firefox browser to quickly pick up Web image materials
- Rust blockchain development - signature encryption and private key public key
- Three level linkage demo of uniapp uview u-picker components
猜你喜欢
在线文本行固定长度填充工具
Uni app change the default component style
Network security - record web vulnerability fixes
【虚幻引擎UE】实现UE5像素流部署仅需六步操作少走弯路!(4.26和4.27原理类似)
Behavior perception system
Seven join join queries of MySQL
Longyuan war "epidemic" 2021 network security competition web easyjaba
Interview byte, pass the exam and directly work on three sides. As a result, I found an architect to hang me?
Threejs Internet of things, 3D visualization of farms (II)
[moteur illusoire UE] il ne faut que six étapes pour réaliser le déploiement du flux de pixels ue5 et éviter les détours! (4.26 et 4.27 principes similaires)
随机推荐
open graph协议
Why can't all browsers on my computer open web pages
How to force activerecord to reload a class- How do I force ActiveRecord to reload a class?
A application wakes up B should be a fast method
这是一个不确定的时代
Scheduling system of kubernetes cluster
[understand series after reading] 6000 words teach you to realize interface automation from 0 to 1
快手、抖音、视频号交战内容付费
【虚幻引擎UE】实现背景模糊下近景旋转操作物体的方法及踩坑记录
Use Firefox browser to quickly pick up Web image materials
Rust blockchain development - signature encryption and private key public key
技术教程:如何利用EasyDSS将直播流推到七牛云?
Convert Boolean to integer value PHP - Convert Boolean to integer value PHP
陇原战“疫“2021网络安全大赛 Web EasyJaba
How to solve the problem that easycvr changes the recording storage path and does not generate recording files?
All in one 1413: determine base
Here comes the Lantern Festival red envelope!
Alibaba cloud ECS uses cloudfs4oss to mount OSS
Clickpaas low code platform
Threejs implements labels and displays labels with custom styles