Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. import _thread
  2.  
  3. def hello(num):
  4. print('hello from thread %s\n' % num)
  5.  
  6. _thread.start_new_thread(hello, (0,))
  7. _thread.start_new_thread(hello, (1,))
  8. _thread.start_new_thread(hello, (2,))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement