in reply to Re: multiprocessing in perl
in thread multiprocessing in perl
ing i But I am getting the following error:$dbh = $conn->databaseHandle();# I am calling this from my connection +class print "dbh: ". $dbh."\n"; async { $dbh->ping while !$done and sleep 15; ## Adjust frequency to suit }->detach; # system 'yourLongRunningCmd'; &long_running_script; sub long_running_script { print "Testing... long_running test is beign called. will sleep for 3 +0 sec\n"; sleep(30); } $done = 1; sleep 1; ## Thread disappears print "Thread disappears..Done";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: multiprocessing in perl
by fzellinger (Acolyte) on Apr 15, 2009 at 20:06 UTC | |
by shijumic (Novice) on Apr 16, 2009 at 17:31 UTC | |
|
Re^3: multiprocessing in perl
by BrowserUk (Patriarch) on Apr 15, 2009 at 18:59 UTC | |
by shijumic (Novice) on Apr 16, 2009 at 17:33 UTC | |
|
Re^3: multiprocessing in perl
by Corion (Patriarch) on Apr 15, 2009 at 18:27 UTC | |
by shijumic (Novice) on Apr 15, 2009 at 18:44 UTC | |
by Corion (Patriarch) on Apr 15, 2009 at 19:23 UTC |