thread_example.py running MyThread number 1 inited MyThread number 1 running MyThread number 2 inited MyThread number 2 running thread_example.pe ending dir(threading) ['BoundedSemaphore', 'Condition', 'Event', 'Lock', 'RLock', 'Semaphore', 'Thread', 'ThreadError', 'Timer', '_BoundedSemaphore', '_Condition', '_DummyThread', '_Event', '_MainThread', '_RLock', '_Semaphore', '_Timer', '_VERBOSE', '_Verbose', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '_active', '_active_limbo_lock', '_allocate_lock', '_counter', '_format_exc', '_get_ident', '_limbo', '_newname', '_pickSomeNonDaemonThread', '_profile_hook', '_shutdown', '_sleep', '_start_new_thread', '_sys', '_test', '_time', '_trace_hook', 'activeCount', 'currentThread', 'deque', 'enumerate', 'local', 'setprofile', 'settrace', 'stack_size']