threads and memory
Rene Pijlman
reply.in.the.newsgroup at my.address.is.invalid
Mon Feb 6 12:22:02 EST 2006
Lee Leahu:
>I am trying to write a simple threaded application which will simulate 1000
>connections to a remote service in order to "stress test" that the remote
>service can handle that many connections.
[...]
>Is there a way to accomplish what I am trying to do, perhaps in a more
>memory-friendly way?
Yes. You don't need one thread per connection:
http://docs.python.org/lib/module-asyncore.html
--
René Pijlman
More information about the Python-list
mailing list