Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


October 02, 2008

Reader Challenge for October 2008 and September Reader Challenge Winners

What is svchost.exe?
RSS
Subscribe to Windows IT Pro | See More Training and Certification Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

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.

End of Article



Reader Comments
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.

markwit October 03, 2008 (Article Rating: )


"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!

Carson1 October 04, 2008 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Learning Path To see all the Reader Challenge pieces
"Reader Challenge by Kathy Ivens"


To see last month's Reader Challenge and answers
"Reader Challenge on Peer-to-Peer Networks"


Top Viewed ArticlesView all articles
10 Reasons to Deploy Windows Vista

The decision to upgrade your XP systems to Vista is simple when you consider features such as easier backup, a great desktop search, and vastly improved security options. ...

10 Reasons Not to Deploy Windows Vista

The decision to upgrade to Vista has to make business sense, but many companies find the costs in training and application compatibility problems outweigh any benefits Vista brings. ...

WinInfo Short Takes: CES 2009 Special Edition

An often irreverent look at some of the week's other CES 2009 news, including covering the Vegas spectacle from the comfort of my own home, Windows 7 public beta, a weird Microsoft song application, Palm Pre, pending Microsoft mobile moves, and much more ...


Related Articles Resolve Memory Leaks Faster

PsExec to the Rescue

Let's Get Out of the (Network) Neighborhood

Yet Another 8 Absolutely Cool, Totally Free Utilities

Related Events Check out our list of Free Email Newsletters!

Training and Certification eBooks Safeguarding Your Windows Servers

A Guide to Windows Certification and Public Keys

Related Training and Certification Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing