int spawn (int max_new_threads)
int spawn (int max_new_threads)
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.
| max_new_threads | the maximum number of new threads to spawn, or -1 for unlimited |
| the number of new threads spawned |