JFarr has asked for the wisdom of the Perl Monks concerning the following question:
The "somefunction" has nothing special in it, just some print statements and calls to show host name, ip address, etc.....use threads; use threads : shrared; foreach $host (@list_of_nodes) #we are connecting other PCs { threads->new(\&somefunction, $host); } (threads->list)[0]->join while threads->list;
2006-06-02 Retitled by jeffa, as per Monastery guidelines
Original title: 'thread help please'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to terminate threads that hang or never return?
by zentara (Cardinal) on Jun 02, 2006 at 16:21 UTC | |
|
Re: How to terminate threads that hang or never return?
by jdhedden (Deacon) on Jun 02, 2006 at 18:16 UTC |