Warning
External usage of internal utility functions and modules should be kept to a minimum as they may be altered, refactored or moved to other locations without notice (and without the typical deprecation cycle).
Helper to determine if a thread is alive (handles none safely).
Return the ‘thread identifier’ of the current thread.
Try to guess optimal thread count for current system.
Makes a daemon thread that calls the given target when started.