Force quitting apps vs gracefully quitting apps on Mac

Hi,


I would like to understand the difference in force quitting an app (Apple > Force Quit) versus gracefully quitting an app (CMD-Q) on Mac.


What differences are there in the processes that occur when either CMD-Q'ing an app vs force quitting it?


Likewise, what damage would be done to an app if it was force quitted, if any?


I understand that force quitting essentially just terminates the app's process without "telling it" that it it time to close down, so surely there must be a reason that apps should be quit gracefully? Immediately that comes to mind is that: apps need to be gracefully shut down, else they risk becoming corrupt/unable to start if they're force quitted. However, I have force quitted many apps over the years and never had any issues related to this. Thus, what's the point in having a graceful CMD-Q quit vs a force quit?


Another example of this is the Finder/Dock. Lots of finder/Dock customisation commands in terminal that use "defaults write" require a "killall Finder" in order to save the changes to the Finder's plist file. "Killall Finder" force quite finder, as opposed to gracefully quits it. Thus, is this an issue? Should I be finding an alternative way to quit finder without force quitting it, if I need to apply any changes to its plist file? Is it possible that the finder could become corrupt by force quitting it many times, requiring a complete reinstall of macOS to fix it?


Many thanks.

MacBook Pro Retina

Posted on Aug 7, 2020 3:11 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 15, 2020 8:25 PM

What differences are there in the processes that occur when either CMD-Q'ing an app vs force quitting it?


Essentially those you described: give the app a chance to "save" its work and temporary files so that it can launch quickly the next time. Also, the app should release system resources upon quit to be made available to other processes that need them. However, since lazily written apps are the norm rather than the exception, macOS versions going all the way back to Snow Leopard already has the ability to kill idle processes (within limits), releasing system resources such as memory, file allocations and CPU time, meaning there's effectively no difference between quit and force-quit in many cases.


Besides, the concept of explicitly having to "save" your work is gone in all Apple apps and most of the better written ones. In fact "autosave" is part of that automatic termination process. Taken to its logical conclusion the fact a Dock icon might have a dot under an app indicating it's "running" means very little. An open, apparently "running" app may already have had the processes associated with it killed by macOS, only to load them again should it become active. You literally cannot tell the difference.


Have you ever asked yourself how to "quit" an iOS app? Has an iPhone ever lost your saved work? Didn't think so.


Likewise, what damage would be done to an app if it was force quitted, if any?


To the app? None. You might lose "unsaved" work, and to cite a trivial example consider virtualization software. If you force a VM to quit it's gone, whereas quitting the virtualization software nicely gives it a chance to save the VM first so that it can be reloaded when you restart it.


Is it possible that the finder could become corrupt by force quitting it many times, requiring a complete reinstall of macOS to fix it?


No chance whatsoever.


So go ahead and force quit if you like.

Similar questions

2 replies
Question marked as Top-ranking reply

Aug 15, 2020 8:25 PM in response to itservicesx

What differences are there in the processes that occur when either CMD-Q'ing an app vs force quitting it?


Essentially those you described: give the app a chance to "save" its work and temporary files so that it can launch quickly the next time. Also, the app should release system resources upon quit to be made available to other processes that need them. However, since lazily written apps are the norm rather than the exception, macOS versions going all the way back to Snow Leopard already has the ability to kill idle processes (within limits), releasing system resources such as memory, file allocations and CPU time, meaning there's effectively no difference between quit and force-quit in many cases.


Besides, the concept of explicitly having to "save" your work is gone in all Apple apps and most of the better written ones. In fact "autosave" is part of that automatic termination process. Taken to its logical conclusion the fact a Dock icon might have a dot under an app indicating it's "running" means very little. An open, apparently "running" app may already have had the processes associated with it killed by macOS, only to load them again should it become active. You literally cannot tell the difference.


Have you ever asked yourself how to "quit" an iOS app? Has an iPhone ever lost your saved work? Didn't think so.


Likewise, what damage would be done to an app if it was force quitted, if any?


To the app? None. You might lose "unsaved" work, and to cite a trivial example consider virtualization software. If you force a VM to quit it's gone, whereas quitting the virtualization software nicely gives it a chance to save the VM first so that it can be reloaded when you restart it.


Is it possible that the finder could become corrupt by force quitting it many times, requiring a complete reinstall of macOS to fix it?


No chance whatsoever.


So go ahead and force quit if you like.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Force quitting apps vs gracefully quitting apps on Mac

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.