thread

This module provides primitive operations to write multi-threaded programs. The ‘threading’ module provides a more convenient interface.

Functions

allocate(...) Create a new lock object.
allocate_lock(...) (allocate() is an obsolete synonym)
exit() (exit_thread() is an obsolete synonym) (exit_thread() is an obsolete synonym)
exit_thread(...) This is synonymous to ``raise SystemExit’‘.
get_ident(() -> integer) Return a non-zero integer that uniquely identifies the current thread amongst other threads that exist simultaneously.
interrupt_main() Raise a KeyboardInterrupt in the main thread.
stack_size(([size]) -> size) Return the thread stack size used when creating new threads.
start_new(function, args[, ...) Start a new thread and return its identifier.
start_new_thread(function, args[, ...) (start_new() is an obsolete synonym)

Classes

LockType alias of lock

Exceptions

error