title: How can I speed up my loop calling a command line tool in ASP.NET?
body: <p>I have an ASP.NET page that gets a list of game server ip addresses (quickly) and loops through them running a command line tool against them to get special game server information.  I have to use the command line tool because I don't know how it works to get the information from the machines and I don't want to reinvent the wheel.  The looping is the slow part (surprise surprise).  Each command line tool run takes up to a second so with approximately 60 ip addresses polled on average, the page load can take from 30-60 seconds to render the results I need.</p>
  
  <p>My obvious thought was "multithread that thing!"  Well, I tried that w/ thread pools but ended up with a hanging website if more than one person accessed the page at a time. This was only using 4-5 calls at a time up to the 60 making it a 10 sec load time.  So not only did it hang with multiple users, it was still too slow.  I'd be happy if I could get it to under 3 seconds.</p>
  
  <p>I should mention this page is in a shared hosting environment.  I had a great solution before outside of the shared hosting environment but I had to cut costs and I'm trying to make it work w/ shared now.</p>
  
  <p>Is there any hope?</p>