Re: AW: Problem with thread

2004-08-04 Thread Aashish Chaudhary
Hi, Nope I dont have any references to $thread once its created. One thing when I was trying to do is my $thread = threads->new()->detach; then this was giving me error: Free to wrong pool at Widget.pm at 96 during global destruction. but when I do this my $th

Re: AW: Problem with thread

2004-08-03 Thread Thomas S Brettin
> > for ($i=1;$i<255;$i++) > > { > > $host="10.10.10."."$i"; > > my $thread = threads->create(threads,subping($host)); > > } > > here I would say, you should write: > my $thread1 = threads->new(\&subping, $host); > So, what happens to the $thread variable in each iteration of the loo

AW: Problem with thread

2004-07-29 Thread Sommer, Alexander, VF-DE
Hello, > Von: Ollivier Cédric > I have a problem with my program. I would like to do some > instructions in the same time by using thread. > Why can I do for creating multithread in Perl ? > That's my program. > use threads; > use Config; > > use Net::Ping; > > $Config{u

Problem with thread

2004-07-29 Thread Ollivier Cédric
Hello I have a problem with my program. I would like to do some instructions in the same time by using thread. Why can I do for creating multithread in Perl ? That's my program. use threads; use Config; use Net::Ping; $Config{useithreads} or die "Recomp