当前位置:网站首页>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
边栏推荐
- WGS84 coordinate system, web Mercator, gcj02 coordinate system, bd09 coordinate system - brief introduction to common coordinate systems
- A應用喚醒B應該快速方法
- 【科普】热设计基础知识:5G光器件之散热分析
- Network layer - forwarding (IP, ARP, DCHP, ICMP, network layer addressing, network address translation)
- Learning MVVM notes (1)
- 基于TCP的移动端IM即时通讯开发仍然需要心跳保活
- 【虚幻引擎UE】实现背景模糊下近景旋转操作物体的方法及踩坑记录
- 机器学习 --- 神经网络
- [brush questions] BFS topic selection
- Uni app change the default component style
猜你喜欢

如何实现实时音视频聊天功能

Threejs realizes sky box, panoramic scene, ground grass

What is the reason why the webrtc protocol video cannot be played on the easycvr platform?

As soon as I write the code, President Wang talks with me about the pattern all day

【虛幻引擎UE】實現UE5像素流部署僅需六步操作少走彎路!(4.26和4.27原理類似)

10种寻址方式之间的区别

Serpentine matrix

Common features of ES6

File upload bypass summary (upload labs 21 customs clearance tutorial attached)

Seven join join queries of MySQL
随机推荐
File upload bypass summary (upload labs 21 customs clearance tutorial attached)
MacBook安装postgreSQL+postgis
【虚幻引擎UE】实现UE5像素流部署仅需六步操作少走弯路!(4.26和4.27原理类似)
Realize the attention function of the article in the applet
学习MVVM笔记(一)
How to get the first few pieces of data of each group gracefully
How to realize real-time audio and video chat function
Network layer - forwarding (IP, ARP, DCHP, ICMP, network layer addressing, network address translation)
Threejs realizes the drawing of the earth, geographical location annotation, longitude and latitude conversion of world coordinates threejs coordinates
Interview byte, pass the exam and directly work on three sides. As a result, I found an architect to hang me?
【虚幻引擎UE】实现背景模糊下近景旋转操作物体的方法及踩坑记录
网络安全-记录web漏洞修复
小程序中实现文章的关注功能
mysql的七种join连接查询
Differences among 10 addressing modes
Looking back on 2021, looking forward to 2022 | a year between CSDN and me
provide/inject
Threejs clicks the scene object to obtain object information, and threejs uses raycaster to pick up object information
Machine learning decision tree
在线SQL转Excel(xls/xlsx)工具