How can windows task manager close frozen program which we cant by clicking on close button?

1.25K views

How can windows task manager close frozen program which we cant by clicking on close button?

In: 27

58 Answers

Anonymous 0 Comments

Lots of good answers here, but I think one piece not explained well is the relationship between the OS and the programs running. The OS, in this case Windows, is considered to be the highest permission level. All the programs running are only allowed to do anything when the OS gives them a turn.

From our perspective, it happens so fast that it seems like the programs are all running at the same time. But the OS is using a “scheduler” to control who gets to run when. It tries to be fair and give all programs a chance to run. The OS keeps a record of all the running programs and goes through the list giving out time to each one to do it’s stuff.

When you close a program, you are asking that program to close itself. When the OS gives it time to run, it will hopefully listen to you and close. But ultimately it’s still allowed to do whatever it wants. You could write a program that has a close button that does nothing, for example. So you’d never be able to close it without OS intervention.

Now when the OS intervenes, sometimes it still tries to convince the program to close itself. Maybe the program didn’t listen to you, but it will listen to the OS. This still allows the program to finish up some job it’s in the middle of before closing. But if that doesn’t work, task manager will eventually take matters into it’s own hands. It will remove the program from its list of programs which the scheduler gives time to run, and then it will free up the memory space that program was using to be used by other programs later. Now it’s like that program just suddenly poofs away.

You are viewing 1 out of 58 answers, click here to view all answers.