PyDocs

Nav

Concurrent Execution

start_new_thread

_thread

function
  • start_new_thread(function, args[, kwargs])
Start a new thread and return its identifier.

The thread will call the function with positional arguments from the
tuple args and keyword arguments taken from the optional dictionary
kwargs.  The thread exits when the function returns; the return value
is ignored.  The thread will also exit when the function raises an
unhandled exception; a stack trace will be printed unless the exception
is SystemExit.
Changed in 3.8
  • 3.8: sys.unraisablehook() is now used to handle unhandled exceptions.
0 Examples
No examples for _thread/start_new_thread.
See Also
No see-alsos for _thread/start_new_thread
0 Notes
No notes for start_new_thread