0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
~93 People Reached
Favorite Forums
|
Re:
Hey guys... I have some code here: [CODE] import os import threading import urllib import time a=0 class launch(threading.Thread): def start_now(): try: urllib.urlopen("http://www.google.com") except: a+=1 start_now() def end(): print("\nOut of 10000 requests, "+str(a)+" requests failed.") for x in range(10001): launch().start() print("http://www.google.com") end() raw_input("<Done>") [/CODE] This works, in the sense that … |