RosettaCodeData/Task/Concurrent-computing/Python/concurrent-computing-3.py

10 lines
243 B
Python
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
import threading
import random
def echo(text):
print(text)
2019-09-12 10:33:56 -07:00
threading.Timer(random.random(), echo, ("Enjoy",)).start()
threading.Timer(random.random(), echo, ("Rosetta",)).start()
threading.Timer(random.random(), echo, ("Code",)).start()