Method and Apparatus for managing out-of-memory in embedded system
暂无分享,去创建一个
The invention relates to a method for handling out-of-memory conditions that occur as the number of applications running on the embedded system. Memory situation management method for an embedded system according to the present invention comprises the steps that at least one of a process of selecting at least one process is running; Wherein the selected protection to the at least one process; Receiving requests for allocation of memory space for executing at least one process; If it is determined whether or not the lack of the requested memory space is insufficient memory space for receiving the request step of using the memory and checks the protection of at least one execution process; The step of selecting at least one end of the execution process of the execution is not the protective setting process; And allocating the memory space that was used by the end of running process, the process requests the assignment of the memory space. According to the present invention, there is provided a flexible algorithm for processing out-of-memory conditions. Also, in low memory situations you can reliably use a particular program. Swap space, embedded systems, memory management policies, available memory, the protection process