There are two common ways to exit a program in Windows:
- Click on
Filein the menu bar and selectExitfrom the resulting menu - Click on the
Xbutton in the upper right corner
Assume, for the sake of this question, that you're dealing with the last window the program has open. Assume also that you're not dealing with a program that sneakily stays open as a background process even when it doesn't have active windows.
Are these methods equivalent to each other? If not, what's the difference? For example, does one clean up resources more fully than the other?