Created
January 20, 2016 05:33
-
-
Save purezen/9468ed6826ac1020aeac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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