Memory Management for Mac

Source: Internet
Author: User

Resource management under MAC and Windows Resource management are two completely different concepts, and Windows thinks that a program that takes up too much resources is a waste, and the MAC thinks that resources are wasted in vain.

So under Windows, when a program exits, the memory it occupies will be released immediately, leaving it for later applications, which means that you will be replaced immediately after you go out, even if you just go out and come back you will find that you have to re-find the location, and Mac different, when a program quits under Mac, The system does not immediately release the memory occupied by the program, but instead marks it as "inactive" ("Blue" memory in the Activity Monitor), and when a program starts, the Mac prioritizes the available resources ("Green" memory in the Activity Monitor), and only if the available resources are insufficient, the system will not Some of the resources are withdrawn for the program, so you will see little green under your Mac, because your Mac takes precedence over green.

Don't worry, however, that when the program exits, the "inactive" memory is small (keeping only the memory needed for the program to start). The advantage of this is that, on the one hand, both ensure that the program has sufficient resources available, on the other hand, to ensure that the programs that have been started can be quickly started, non-impact. That is, under Windows, Renzouchaliang, but under the Mac, people go, tea can also be hot for a while, in case you come back to do.

In short, in terms of resource allocation, Windows is a sequential occupation, priority to use other people's last memory, while the MAC is a new occupation, priority allocation of available resources, like when you have a vacant seat when you first sit, not empty seats when everyone squeeze a squeeze, and in terms of resource recycling, Windows believes that manger is a waste of resources, and the Mac thinks when manger there are plenty, you can first occupy, to prevent you at any time to pull the belly, only when the manger is not enough, you need to release, which is why you quit a program in the Mac, and then start to find the reason for faster. Because its memory is not completely released, it retains a portion of the memory needed to boot. This is the difference in their management.

If you want to free inactive memory, you can enter purge in terminal and press Return to release some inactive memory.

Memory Management for Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.