The invention discloses an AI scheduling task-based memory optimization method, which relates to the technical field of
computer memory management, and comprises the following steps of: collecting and preprocessing memory use data for executing a task through a memory
monitoring system, and predicting a memory demand; and based on the prediction result, combining the task
state parameter and the memory use trend, adaptively performing memory pre-allocation. And performing memory
demand analysis on the concurrent tasks, constructing a
priority scheduling queue, and executing the tasks by using a preemptive scheduling
algorithm. By marking and identifying moving objects and unused objects in the memory, useless objects are cleared in real time, the state of a
memory block is monitored, and a memory rising abnormal index and an optimization efficiency index are obtained. When the index exceeds a preset threshold value, an optimization
signal is generated, and memory re-optimization is carried out. By accurately predicting the task memory demand and combining the task state and the memory use trend, the memory allocation and
recovery strategy is adaptively adjusted, efficient memory
resource management is achieved, and the memory
utilization rate and the overall performance are improved.