当前位置:网站首页>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
边栏推荐
- 3. Package the bottom navigation tabbar
- Containerd series - what is containerd?
- Fuel consumption calculator
- Seven join join queries of MySQL
- 函數(易錯)
- The scale of computing power in China ranks second in the world: computing is leaping forward in Intelligent Computing
- [phantom engine UE] only six steps are needed to realize the deployment of ue5 pixel stream and avoid detours! (the principles of 4.26 and 4.27 are similar)
- 在线文本行固定长度填充工具
- Ctfshow 2022 Spring Festival welcome (detailed commentary)
- Threejs loads the city obj model, loads the character gltf model, and tweetjs realizes the movement of characters according to the planned route
猜你喜欢
[phantom engine UE] realize the animation production of mapping tripod deployment
The scale of computing power in China ranks second in the world: computing is leaping forward in Intelligent Computing
Behavior perception system
Serpentine matrix
【科普】热设计基础知识:5G光器件之散热分析
【虛幻引擎UE】實現UE5像素流部署僅需六步操作少走彎路!(4.26和4.27原理類似)
Alibaba cloud ECS uses cloudfs4oss to mount OSS
[uniapp] system hot update implementation ideas
[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)
File upload bypass summary (upload labs 21 customs clearance tutorial attached)
随机推荐
[untitled]
【FineBI】使用FineBI制作自定义地图过程
kubernetes集群之调度系统
The order of LDS links
Machine learning -- neural network
【虚幻引擎UE】实现背景模糊下近景旋转操作物体的方法及踩坑记录
10种寻址方式之间的区别
Is "golden nine and silver ten" the best time to find a job? Not necessarily
Network layer - forwarding (IP, ARP, DCHP, ICMP, network layer addressing, network address translation)
函数(基本:参数,返回值)
[brush questions] BFS topic selection
How to solve the problem that easycvr changes the recording storage path and does not generate recording files?
Behavior perception system
3. Package the bottom navigation tabbar
Serpentine matrix
PR video clip (project packaging)
Containerd series - detailed explanation of plugins
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 solution to the problem that variables cannot change dynamically when debugging in keil5