spawn
Description:
Possibly spawn new thread(s)
This method will spawn up to max_new_threads new threads if no constraints (i.e., maximum number of threads) would be violated by doing so.
Parameters:
max_new_threads |
the maximum number of new threads to spawn, or -1 for unlimited |
Returns:
the number of new threads spawned |