Helping people with computers... one answer at a time.

Closing and Killing programs are both ways to shut down programs from current use, but the ramifications are very, very different.

What's the difference between Closing and Killing a program?

There is a difference, and it's an important one.

I liken it to the difference between asking someone to leave, and physically kicking them out of the door.

When you close a program - through any of a number of standard ways - what you're actually doing is asking the program to close itself.

When a program shuts down or "closes", it has the opportunity to finish writing to any files it might have open, save your settings, save your documents, delete any temporary files, and otherwise perform an orderly exit.

It's like asking a guest to leave, and as they take their time on the way out they make sure to finish their drink and take their coat.

"When a program shuts down or 'closes', it has the opportunity to finish writing ..."

"Killing" a program - which typically takes a special utility like Task Manager or Process Explorer - doesn't ask the program anything. The operating system is instructed to stop running the program immediately. The program has no say in the matter. It doesn't get a chance to clean up on the way out, and thus documents may not be saved, temporary files may not be deleted, and so on.

If you physically kick your guest out, their drink might be left half-empty, and they might well leave their coat behind. But one way or another, the guest is gone.

Now, things can get a tad confusing because some programs don't really exit when you ask them to close. Continuing the metaphor, after asking them to go it's as if your guest ducked into the closet instead of leaving. They're still around, you just can't see them.

I see this in Microsoft Outlook from time to time - you type ALT+F4 to exit, and by all appearances it has. But if you fire up process explorer you'll see that OUTLOOK.EXE might still be running. You can then use Task Manager to kill it, if you like.

Programs do this for various reasons - the most common being that when you then ask them to start again they appear more quickly. (No, I'm not going to extend my metaphor any further, even though it's tempting to have something about your guest suddenly jumping out of hiding when you call and ask him to return. Smile)

Other programs may have other reasons for hanging around; perhaps they actually appear to exit very quickly, but the actual process of closing and cleaning up might take some time.

As you can imagine, actually killing a program shouldn't be done lightly. In fact, it should never really be necessary, but reality is that sometimes you have to kick out your misbehaving guest. The risk is that you might lose whatever data that program was operating on, and might leave orphaned temporary files that otherwise would have been automatically cleaned up.

In addition, it can be risky to kill system processes like svchost, lsass and others. If they can be killed (some cannot), it's possible to crash your system on the spot.

Article C3564 - November 14, 2008

Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Recent Comments
6 Comments

I think the Applications tab shows only the things you can see (like the browser you're using to view this page), while the Processes tab show all running processes. I think there's no real difference between killing in the Applications tab (hitting End task) or killing the same process in the Processes tab.

Posted by: Mike at November 16, 2008 11:59 PM

Mike, that's what I would hope. But sometimes hitting End Task doesn't end the task, yet that task can be ended by ending its Process. I am curious how End Task could ever fail to end the task.

Posted by: John R at November 17, 2008 7:15 AM

From what I can tell, using "End Task" from the Applications tab is just the same as clicking on the [X] button. You attempt to close the program, so it tries to go through it's orderly shut down.

Posted by: RJ at November 17, 2008 12:42 PM

V useful pointer, as usual. Thanks Leo.

The d/l page says that procept is for Win 2000. Is it OK for XP SP3, please.

Regards

DAVID

I have an urgent problem that procept might solve: please could you find/make time to give me an answer ?

"procept"?? Process Explorer, procexp.exe, works in XP and Vista all service packs.
- Leo
20-Nov-2008
Posted by: David Chapman at November 18, 2008 10:44 AM

When leaving a program such as CC cleaner or any other does it matter if you go through the exit routine or just hit the "X" in the upper right corner ?

It's not supposed to matter - the programs are supposed to treat them the same. However they are two different things and a poorly designed program could treat them differently.
Leo
29-Nov-2011
Posted by: Pat McDonald at November 29, 2011 2:13 PM
Post a comment on "What's the difference between Closing and Killing a program?":





Remember Me?

(You may use HTML tags for style)

Before commenting, please...

  • READ THE ARTICLE. A comment that shows you didn't will be deleted and ignored.

  • Comment only on the article. Use the search box at the top of the page if you have a question about something else.

  • NO PERSONAL INFORMATION in the comment. No email addresses. No phone numbers. No physical addresses.

  • Anything that looks the least bit like spam will be deleted. Links to unrelated sites or links that appear to be primarily promotional will be deleted, or the comment will be deleted.

  • Don't ask me to recover lost passwords or hacked accounts. I can't. Those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...