Datasets:

Modalities:
Text
Formats:
text
Size:
< 1K
Libraries:
Datasets
License:
PyRs2 / python /concurrency.py
khulnasoft's picture
Upload folder using huggingface_hub
998b6cc verified
raw
history blame contribute delete
242 Bytes
import threading
import time
def worker():
print("Worker thread starting...")
time.sleep(1)
print("Worker thread finishing.")
thread = threading.Thread(target=worker)
thread.start()
thread.join()
print("Main thread finishing.")