narenarya

5 second cron like executing python threads

Aug 20th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. def hello():
  2.    print "hello"
  3.    global t
  4.    t = threading.Timer(5.0, hello)
  5.    t.start()
  6.  
  7. t = threading.Timer(5.0, hello)
  8. t.start()
Advertisement
Add Comment
Please, Sign In to add comment