Skip to content

Instantly share code, notes, and snippets.

@purezen
Created January 20, 2016 05:33
Show Gist options
  • Save purezen/9468ed6826ac1020aeac to your computer and use it in GitHub Desktop.
Save purezen/9468ed6826ac1020aeac to your computer and use it in GitHub Desktop.
import threading
def run_program():
work_thread = threading.Thread(target=say_hello)
work_thread.start()
work_thread.join()
print "program end"
def say_hello():
print "heyii.."
def other_work():
print "running calculations...."
run_program()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment