PyDocs

Concurrent Execution

_thread

This module provides primitive operations to write multi-threaded programs.
The 'threading' module provides a more convenient interface.
Symbols in _thread

a

allocate_lock
Create a new lock object.

e

error
Unspecified run-time error.
exit
This is synonymous to ``raise SystemExit''.

g

get_ident
Return a non-zero integer that uniquely identifies the current thread amongst other threads that exist simultaneously.
get_native_id
Return a non-negative integer identifying the thread as reported by the OS (kernel).

i

interrupt_main
Simulate the arrival of the given signal in the main thread, where the corresponding signal handler will be executed.

l

LockType
A lock object is a synchronization primitive.

s

stack_size
Return the thread stack size used when creating new threads.
start_new_thread
Start a new thread and return its identifier.

t

TIMEOUT_MAX
The maximum value allowed for the timeout parameter of Lock.acquire.