The invention discloses an available memory real-time display method and device driven by a task event of a mobile terminal. According to the method, an
event monitoring mechanism is established, and when it is detected that a user enters a recent task interface, closes a task or executes all cleaning operations, memory information collection is triggered; available memory and total memory data in the
system memory information file are read in a background thread, and re-collection is carried out through preset
delay after task operation, so that the accurate memory release amount is calculated; a calculation result is converted into a readable format through a formatting module, and an interface is updated in real time through a main thread. Through the design of combining event triggering and delayed secondary acquisition, the accuracy of release amount calculation and the
system response speed can be improved while high-frequency
polling is avoided. The method further supports virtual
extended memory display, a filtering and threshold judgment mechanism, a deep cleaning module and a low memory prompt function, and can effectively improve transparency of
system resource management and user interaction experience.