The thread module provides the following low-level functions for working with threads. This module is available only on UNIX and Windows.
Creates a new lock object of type LockType. Locks are initially unlocked.
Raises the SystemExit exception. Forces a thread to exit.
Returns the integer “thread identifier” of the current thread.
Raises a KeyboardInterrupt exception in the main thread.
start_new_thread(func, args [, kwargs])
Executes the function func in a new thread. func is called using apply(func, args, kwargs). On success, control is immediately returned to the caller. When the function func returns, the thread exits silently. If the function terminates with an unhandled exception, ...