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

10 lines
243 B
Python
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
import threading
import random
def echo(text):
print(text)
threading.Timer(random.random(), echo, ("Enjoy",)).start()
threading.Timer(random.random(), echo, ("Rosetta",)).start()
threading.Timer(random.random(), echo, ("Code",)).start()