[python-users] Threading

do_not_reply_to_this_address at t-online.de do_not_reply_to_this_address at t-online.de
So Jul 19 23:17:58 CEST 2009


Ich habe es mal implementiert, ich denke ich habe jetzt das selbe 
Verhalten in Haskell wobei ich das Gefühl habe das es in Haskell 
schneller lief, vieleicht mache also auch noch irgendetwas falsch.

Programm
a=muliproc(getURL,"http://www.google.de")
b=muliproc(getURL,"http://www.python.org")
c=muliproc(getURL,"http://www.haskell.org")

print (len(a)+len(b)+len(c) )
print (len(str(a).split("a")))

Ausgabe
Getting URL http://www.google.de
Getting URL http://www.python.org
Getting URL http://www.haskell.org
Got URL http://www.google.de
Got URL http://www.haskell.org
Got URL http://www.python.org
49690
247

Link zum vollständigen code.
http://de.wikibooks.org/wiki/Benutzer:Dirk_Huenniger/py2
Gruß Dirk



Mehr Informationen über die Mailingliste python-users