{"id":42423,"date":"2003-09-18T09:04:00","date_gmt":"2003-09-18T09:04:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2003\/09\/18\/improving-the-world-one-bad-analogy-at-a-time\/"},"modified":"2003-09-18T09:04:00","modified_gmt":"2003-09-18T09:04:00","slug":"improving-the-world-one-bad-analogy-at-a-time","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20030918-00\/?p=42423","title":{"rendered":"Improving the world one bad analogy at a time"},"content":{"rendered":"\n<p>         One thing I am known for at Microsoft is my frequent use of bad analogies. Everybody         else at work has had to suffer; now it&#8217;s your turn.      <\/p>\n<p>         Why are there so many copies of svchost.exe running? What is svchost.exe anyway?      <\/p>\n<p>         Traditionally, each service runs in its own process. When you are developing and testing         your service, having it in its own process makes debugging a lot easier.      <\/p>\n<p>         But if you look at your list of services (in Computer Management, Services), you can         see that if each one got its own process you&#8217;d sure have a whole lot of processes         lying around. Since there is a cost to each process merely for existing, having so         many processes running would be a waste, since many services are used only sporadically.         Tapisrv, for example, is active only when you are doing things with your modem.      <\/p>\n<p>         For performance reasons, groups of services are thrown together and run in a shared         process called svchost. Sort of like a reality TV show, but without the voting.      <\/p>\n<p>     This means that if you see a copy of svchost.exe going a bit haywire in Task Manager,     you can&#8217;t really tell which service inside it is responsible. For performance reasons,     groups of services are thrown together and run in a shared process called svchost. <a href=\"http:\/\/www.bigbrother.de\/\">Sort     of like a reality TV show<\/a>. Knowledge Base article 314056 describes <a href=\"http:\/\/support.microsoft.com\/?kbid=314056\">how     you can dig into each svchost to see which services are running inside it<\/a>. This     will at least narrow the problem down to a subset of all the services.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>One thing I am known for at Microsoft is my frequent use of bad analogies. Everybody else at work has had to suffer; now it&#8217;s your turn. Why are there so many copies of svchost.exe running? What is svchost.exe anyway? Traditionally, each service runs in its own process. When you are developing and testing your [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[26],"class_list":["post-42423","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-other"],"acf":[],"blog_post_summary":"<p>One thing I am known for at Microsoft is my frequent use of bad analogies. Everybody else at work has had to suffer; now it&#8217;s your turn. Why are there so many copies of svchost.exe running? What is svchost.exe anyway? Traditionally, each service runs in its own process. When you are developing and testing your [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/42423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=42423"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/42423\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=42423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=42423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=42423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}