# thread.py
#
# Example of defining a thread in Python

import threading
import time

class ChildThread(threading.Thread):
    def run(self):
        while True:
             time.sleep(15)
             print "Are we there yet?"

child = ChildThread()   # Create a thread
child.start()           # Launch it.  This executes run()

# Note: Try running this code as python -i thread.py.  Then play
# around with the interactive interpreter while it runs.
