I want to try this one correct me if I’m wrong
When you click on the x to close a program generally the program have to clean the memory he used and he need to stop correctly any action he started. That’s why when it freeze a lot of time something is blocking the program to do any future action.
The task manager is sending a signal telling to kill the program and your computer does so without asking or checking the state of the program.
Latest Answers