As you experiment more with threads, you may see the warning "
A thread exited while %d other threads were still running", that is caused by the main thread finishing before the spawned threads. Also watch out for using "exit" or "die" in thread code blocks, that will exit the entire program.
| [reply] |
You should run your Perl scripts from a windows shell window, error messages and warning would be lost when running from windows explorer.
| [reply] |
Yes. In this case however, the program exits, before the thread gets a chance to run, so no output, and no errors
| [reply] |