Font Size: a A A

Design And Implementation Of Memory Management Based On ?COS-? Embedded Real-Time System

Posted on:2021-02-22Degree:MasterType:Thesis
Country:ChinaCandidate:X Y CuiFull Text:PDF
Abstract/Summary:PDF Full Text Request
As an open source free,tailorable,stable and efficient embedded real-time operating system,?COS-?,its predecessor ?C/OS-II,has been recognized in applications in various fields and is in a mature stage.As a new generation of embedded real-time system,?COS-? has evolved into a brand-new system based on ?C/OS-II,which not only has an unlimited expansion of functions such as the number of tasks,but also has many New features such as time slice rotation scheduling method.However,the static partitioned management of memory management of ?COS-?,which is still in the development stage,shows that the memory allocation is not flexible enough and lack of control for memory fragmentation.It is necessary to conduct targeted research on the memory management method of ?COS-? to cope with the demand for more tasks and more complex functions in future practical applications.Dynamic memory management is more flexible than static memory partition management.As a classic dynamic memory management method,the partner algorithm solves the problem of space storage efficiency to a certain extent,and also helps to solve the problem of memory fragmentation.However,the partner algorithm also has deficiencies in dealing with multi-task management.The internal memory fragmentation problem is not solved well,and the remaining part of the memory space cannot be used.And the more tasks that apply for memory space,the more serious this situation is,the memory utilization is reduced,and the overall performance of embedded system product equipment is reduced.In view of this situation,this paper improves on the basis of partner algorithm and designs a memory management method suitable for ?COS-? embedded real-time system,and focus on research to reduce the generation of internal debris,improve the recovery mechanism,and design a memory management method suitable for the multi-tasking requirements of ?COS-? embedded real-time systems.When the system allocates memory for a task,the memory block that is also a partnership is allocated to the rear part to ensure that the free area is in front of the allocated memory block.The recycling process is not constrained by the power of 2 in the buddy algorithm.From back to front,the memory blocks in the linked list that are in a partnership relationship are searched to reduce the generation of internal fragments.Transplant the designed management method into the ?COS-? system,so that the ?COS-? embedded real-time system can serve applications with specific needs in the future.Through comparative analysis of experimental data,the embedded real-time system ?COS-? has been improved in memory management.The improved dynamic memory management method has improved memory utilization compared with the original static memory management method,and effectively reduce the generation of internal memory fragmentation.This improvement will provide beneficial help for complex functional requirements in memory in the future.
Keywords/Search Tags:Embedded Real-Time System, Memory Management, Buddy Algorithm, ?COS-?
PDF Full Text Request
Related items