Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

October 02, 2008 12:00 AM

Reader Challenge for October 2008 and September Reader Challenge Winners

What is svchost.exe?
Windows IT Pro
InstantDoc ID #100455
Rating: (2)

September 2008 Reader Challenge Winner

Congratulations to the winner of our September 2008 Reader Challenge. Connie Greene, of Ohio, asked for a copy of “Running QuickBooks in Nonprofits,” (CPA911 Publishing) because she volunteers IT services to her church.

How to Do the Reader Challenge

Solve this month's Vista Update challenge, and you might win a prize! Email your solution (don't use an attachment) to challenge@windowsitpro.com by Oct.7, 2008. You MUST include your full name, street mailing address (no P.O. Boxes), and a telephone number. Without that information, we can't send you a prize if you win, so your answer is eliminated, even if it’s correct.

I choose winners at random from the pool of correct entries. I’m a sucker for humor and originality, and a cleverly written correct answer gets an extra chance. Because I receive so many entries each month, I can't reply to respondents, and I never respond to a request for an email receipt. Look for the solutions to this month's problem at http://www.windowsitpro.com/articles/index.cfm?articleid=100455 on Oct. 8,2008.

Take The October 2008 Challenge

This month's challenge is inspired by several email queries from users. All of them asked the same question, in almost the same words: "What is the program svchost.exe and why does the Processes tab of Task Manager show multiple instances of svchost.exe running at the same time?" Can you answer their questions? Here are some choices--tell me which answer is correct.

A. It's a Windows program that controls all Internet services, including the browser, the firewall, and network connections, and runs separately for each service.

B. It's a generic executable that runs in order to control DLLs launched by application software, to make sure those DLLs don't interfere with Windows services.

C. It's a generic executable that runs in order to launch Windows services that run as DLLs and opens a new instance of itself for each related group of DLLs.

 

Answer: C

Actually, this is a clever way to manage services that run as DLLs. DLLs can't open by themselves, they're called by an .exe file, which is the role of svchost.exe. If you ran only one instance of svchost.exe to control all DLL services, a failure of one DLL service could impact svchost.exe, and that would affect every DLL service, bringing down the system. (Also, even without a problem in a DLL service, your system would probably run at a crawl if every DLL service were running under a single instance of svchost.exe.) By dividing DLL services into logical groups, and launching each group from a different instance of svchost.exe, Windows minimizes the chance of catastrophic failure.

You can view the instances of svchost.exe in Task Manager by going to the Processes tab and selecting Show Processes From All Users. Each instance is linked to a Name; not a user name, instead names like LOCAL SERVICE, NETWORK SERVICE, SYSTEM. You can view the groups controlled by svchost.exe in the registry at HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Svchost, which has a subkey for each group of DLL services.

Vista has a more sophisticated approach to Task Manager than previous versions of Windows. Go to the Processes tab, click Show Processes From All Users, right-click an instance of svchost.exe and select Go To Services. You're switched to the Services tab where all the services controlled by the selected instance of svchost.exe are highlighted.

Why would you want to know which services are controlled by each instance of svchost.exe? If your system is unusually slow and you notice high CPU usage on a particular instance of svchost.exe, restarting the services launched by that instance usually solves the problem, and that's easier and faster than shutting down all your applications and restarting Windows.

Related Content:

ARTICLE TOOLS

Comments
  • Carson
    4 years ago
    Oct 04, 2008

    "C" is a more accurate answer than markwit's. After you've determined what service is being "hosted" you must then revert back to the fact that "svvchost.exe" is an executable which opens various applications from C:\\Windows\\System32 (for 32 bit systems). Each instance it has opened is an application containing "DLLs"or Dynamic Link Libraries. The applications are indeed windows services and each service has its own set of DLLs. Calls to svchost.exe originate from within the kernel to determine which windows service to "execute" from System32. There are some".inf" files in System32 that you as Administrator are authorized to "execute" with a simple manipulation of the file name. But I won't go there!

  • Mark
    4 years ago
    Oct 03, 2008

    None of the above!
    C. is the closest since svchost does launch all Windows services as needed.
    The easiest way to determine what service is being hosted is to run an instance of 'Process Explorer' (from Sysinternals -- a Microsoft subsidiary now) and simply read the tool tips associated with each instance of svchost.

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.