So you mean you want to keep part of your program running yet signal success to the calling program? That's not possible with threads.Considering that variables can be shared in threads (which is about the only reason to use threads - if you don't need to communicate between threads, you might as well fork), returning status should be easy. Note that most implementation, sharing variables is the default in threads, but Perl does the opposite, but you can mark variables as shared.
In reply to Re^4: In a multithreading Perl Code How to Exit one thread while outher thread keeps running ?
by JavaFan
in thread In a multithreading Perl Code How to Exit one thread while outher thread keeps running ?
by unixmonster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |