python thread scheduler?

Aahz aahz at pythoncraft.com
Fri Apr 9 13:35:16 EDT 2004


In article <pan.2004.04.07.10.27.57.297000 at project2501.cor>,
project2501  <project2501 at project2501.cor> wrote:
>
>to clarifgy, i'm seeing responec times as low as 0.3 seconds when the
>client has 5 worker threads... rising to an average of about 8 seconds
>with 50 threads... and more ith 100 threads.
>
>here is what the python threads do (simplified):
>	while (work units remaining):
>		take time
>		send request to server
>		get responce from server
>		take time
>		record time difference
>		sleep for a small interval (to yield, and to vary the request rate)
>		reduce work unit by 1

Since this is almost entirely I/O bound, it *should* scale well with
threads.  Question: is your server on the same machine as the client?
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Why is this newsgroup different from all other newsgroups?



More information about the Python-list mailing list