We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7eefcb8 commit 382cfacCopy full SHA for 382cfac
threads/thread.py
@@ -0,0 +1,11 @@
1
+from threading import Thread
2
+import time
3
+
4
+def my_func(i):
5
+ print('Starting thread %d' %i)
6
+ time.sleep(5)
7
+ print('Finishing thread %d ' %i)
8
9
+for i in range(10):
10
+ t = Thread(target=my_func, args=(i,))
11
+ t.start()
0 commit comments