A method for processing a memory, the method being carried out by an electronic device, the method comprising: acquiring a plurality of reclaimable memory pages occupied by an application to be processed; acquiring an idle duration of the application to be processed for each reclaimable memory page; determining a duration threshold according to the idle durations for the reclaimable memory pages; and reclaiming at least one memory page, for which the idle duration exceeds the duration threshold, of the plurality of reclaimable memory pages; the method being characterized in that the determining a duration threshold according to the idle durations for the plurality of reclaimable memory pages comprises: acquiring a reclaiming number of reclaimable memory pages; and selecting the K th -largest idle duration from the idle durations for the plurality of reclaimable memory pages according to the reclaiming number, and taking the K th -largest idle duration as a duration threshold, the number of reclaimable memory pages each having an idle duration greater than the K th -largest idle duration being the reclaiming number, K being a natural number not greater than the reclaiming number; wherein the acquiring a reclaiming number of reclaimable memory pages comprises: determining re-starting durations; acquiring correspondences between the re-starting durations and reclaiming proportions corresponding to the application to be processed, the re-starting duration being a duration for restarting the application to be processed after the reclaiming proportion of the reclaimable memory pages occupied by the application to be processed are reclaimed; determining a reclaiming proportion of reclaimable memory pages according to the correspondences between reclaiming proportions and re-starting durations; and determining the reclaiming number according to the reclaiming proportion and the total number of the reclaimable memory pages; wherein the reclaiming number is a product between the total number of the plurality of reclaimable memory pages and the determined reclaiming proportion; and wherein the reclaiming proportion represents a proportion of reclaimable memory pages to be reclaimed from the plurality of reclaimable memory pages. acquiring a plurality of reclaimable memory pages occupied by an application to be processed; acquiring an idle duration of the application to be processed for each reclaimable memory page; determining a duration threshold according to the idle durations for the reclaimable memory pages; and reclaiming at least one memory page, for which the idle duration exceeds the duration threshold, of the plurality of reclaimable memory pages; the method being characterized in that the determining a duration threshold according to the idle durations for the plurality of reclaimable memory pages comprises: acquiring a reclaiming number of reclaimable memory pages; and selecting the K th -largest idle duration from the idle durations for the plurality of reclaimable memory pages according to the reclaiming number, and taking the K th -largest idle duration as a duration threshold, the number of reclaimable memory pages each having an idle duration greater than the K th -largest idle duration being the reclaiming number, K being a natural number not greater than the reclaiming number; wherein the acquiring a reclaiming number of reclaimable memory pages comprises: determining re-starting durations; acquiring correspondences between the re-starting durations and reclaiming proportions corresponding to the application to be processed, the re-starting duration being a duration for restarting the application to be processed after the reclaiming proportion of the reclaimable memory pages occupied by the application to be processed are reclaimed; determining a reclaiming proportion of reclaimable memory pages according to the correspondences between reclaiming proportions and re-starting durations; and determining the reclaiming number according to the reclaiming proportion and the total number of the reclaimable memory pages; wherein the reclaiming number is a product between the total number of the plurality of reclaimable memory pages and the determined reclaiming proportion; and wherein the reclaiming proportion represents a proportion of reclaimable memory pages to be reclaimed from the plurality of reclaimable memory pages. determining re-starting durations; acquiring correspondences between the re-starting durations and reclaiming proportions corresponding to the application to be processed, the re-starting duration being a duration for restarting the application to be processed after the reclaiming proportion of the reclaimable memory pages occupied by the application to be processed are reclaimed; determining a reclaiming proportion of reclaimable memory pages according to the correspondences between reclaiming proportions and re-starting durations; and determining the reclaiming number according to the reclaiming proportion and the total number of the reclaimable memory pages; wherein the reclaiming number is a product between the total number of the plurality of reclaimable memory pages and the determined reclaiming proportion; and wherein the reclaiming proportion represents a proportion of reclaimable memory pages to be reclaimed from the plurality of reclaimable memory pages.