Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import _thread
- def hello(num):
- print('hello from thread %s\n' % num)
- _thread.start_new_thread(hello, (0,))
- _thread.start_new_thread(hello, (1,))
- _thread.start_new_thread(hello, (2,))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement