import os, threading

limit=1
try:
    limit=int(os.environ["THREADS"])
except:
    pass

class Foo(threading.Thread):
    def run(self):
        os.system("cat /etc/hostname > /dev/null")

threads = []
for i in range(0,limit):
    threads.append(Foo())

for t in threads:
    t.start()

