Re: multithreaded tcp/ip server large page file

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thank you for your response. It's always been my belief that everyone is free to have their own opinions on what is a good or bad way to write a program and I respect your opinion, however from where I stand this is indeed an entirely appropriate way to complete the task at hand.

The 1 meg of fully committed virtual memory the threads use should not be kept after the threads end according to what I've seen/read. And if I'm right then letting each thread have a meg is no problem.


Chris Mullins [MVP] wrote:
How weird. I wrote up a full reply, and I see it on Google, but not here:
http://groups.google.com/group/microsoft.public.dotnet.languages.vb/browse_thread/thread/f81c1c2591938e5/5c9c7a2df42f27a6

Anyway, the original reply was:

Well, handling a request with a new thread is a pretty bad way to ago.

Each time you spin up a new thread, it's going to take up at least 1 meg of
fully committed virtual memory. You can read all the gory details about this
at:
http://www.bluebytesoftware.com/blog/PermaLink,guid,733d7537-f982-488...


You really, really need to use a different model is you want your
application to scale in any meaningful way. Async I/O is really your only
long term solution.


Typically, you don't need to shutdown threads - they just go away when their
top level method exits. If you poke at your application, use a Performance
Counter to tell how many threads you've got running. If the number is very
high, then something is keeping the threads heald open. Do NOT (don't!
really!) just call "Kill Thread" on the open threads if this is the case -
figure out what the problem is and fix it.


You don't need to worry about the Apartment state stuff - it's not relevant
for a socket app.


.



Relevant Pages

  • Re: The Muhammed Cartoons
    ... practicing abortion are terrorists, then I ... I have to conclude that your opinions ... jerk when I defend my ideas from your insult. ... my response does not make me a jerk. ...
    (rec.sport.basketball.college)
  • Re: CALROG.COM releases a book on Great Basin highways
    ... > and I am certaintly quite civil in my posts. ... Carl's response was not vintage Carl ... Remember, it's Carl's website. ... criticism and offered opinions are very different. ...
    (misc.transport.road)
  • Re: When even a Republican can see it....
    ... You were free to phrase other questions to determine my opinions if you ... I am perfectly happy with either response, ... "The opinions you make here frequently" meaning "David N's conclusions ... You seem to think or behave like the facts we're discussing aren't. ...
    (rec.arts.sf.fandom)
  • Re: (M)admam, supertroll
    ... then maybe you would get a response now and again. ... If you do not like my opinions, ... combating antisemitism and holocaust denial. ... America was in the wrong to resist Hitler in such ways, ...
    (talk.origins)
  • Re: Bashing 101
    ... If you could write one response without maligning one or more posters, ... opinions. ... "If you could write one response without maligning one or more posters, ... An attack on a public figure ...
    (rec.music.opera)