Share this topic on FacebookShare this topic on MySpaceShare this topic on Del.icio.usShare this topic on DiggShare this topic on RedditShare this topic on StumbleUponShare this topic on TwitterShare this topic on MagnoliaShare this topic on GoogleShare this topic on Yahoo

Author Topic: svchost.exe questions...  (Read 779 times)

0 Members and 1 Guest are viewing this topic.

Offline Boomer

  • Premium Member
  • *****
  • Posts: 280
svchost.exe questions...
« on: June 24, 2009, 07:59:40 am »
 Ok fellow geeks, I have a question. This one is probably easy for most of you however, it has always bugged me not knowing.
 
 WHY. Why do I have 8 svchost.exe running in the task manager?
 
  One of them is obvious, I assume it is when I am online. The others puzzle me. Are they each running in unison on the same connection? They must be?..
 
 Is it silly to assume they were created with each new connection? For instance, you move, you get new service say, switching from Cox hi speed cable to a DSL? I know the type of connection is irreleant but, do they remain active even though you no longer use that service or am I way off track?
 
 Are they running each type of service required to get online for updates etc.? Like, say the Adobe updates, the Win updates, Office and so on and so on??
 
 Is there a way I can disable them or must I have ALL of them running all the time???
 
 Silly question but I do not understand why so many...
 
 Thanks gang!! Hope I am in the right thread BV.... ;)
Boomer Sooner!!!

Offline Black Viper

  • Administrator
  • ******
  • Posts: 1906
  • "Have you tweaked your OS lately?"
    • Black Viper's Web Site
Re: svchost.exe questions...
« Reply #1 on: June 24, 2009, 08:08:56 am »
svchost.exe is just that: a "Service Host" for other processes.
Under normal circumstances, you can have 4 running at the least because the services that hide under svchost.exe each require different privileged accounts... local, network, system, and user.
Additional ones may be running for a number of reasons, drivers, software, system tray icons, etc.
Charles "Black Viper" Sparks
www.blackviper.com

Offline couttsj

  • Hero Member
  • *****
  • Posts: 440
Re: svchost.exe questions...
« Reply #2 on: June 24, 2009, 09:36:10 am »
Okay, here's the technical explanation. Some services are compiled as executable files (.exe) and are loaded as services directly. Other services are compiled as library files (.dll) are require an executable to act as a container. For this purpose, Microsoft uses SvcHost.exe. There are advantages to both, which I won't get into here.

There can be several SvcHost's running, and each host can support several related services. To view these, go to the command prompt and enter C:\>tasklist /svc. You can see that each group of services managed under a single SvcHost.exe host has a single Process ID. Each library file exposes a number of different elements or handles which can be called upon using COM (Common Object Model), and in turn instanciates handles to a number of other library functions.

Why is it done this way? Memory is allocated dynamically using something called the System Heap. To find and use any of these functions, pointers are used that are relative to the Process ID. Using SvcHost allows several libraries to be managed using a single Process ID.

Hope that wasn't too heavy.

J.A. Coutts

Offline DJanda

  • Premium Member
  • *****
  • Posts: 153
  • It's gotta be in here somewhere...
Re: svchost.exe questions...
« Reply #3 on: June 24, 2009, 10:56:48 pm »
Hope that wasn't too heavy.


Nope -- just right.  :) Very informative and easy to follow.
The Looooooooooooooone Hacker (code, that is:-)