Hi,
I have been looking at Perl threads and IPC. I have played with the threads, and as the documentation states, it is unlikely to work. So I have closed of that avenue of investigation for the minute. Using IPC Open I can see a clear way forward if I wanted a parent-child process communication using pipes and other methods. But I guess it is my own ignorance, but I don't see a way that it could resolve the following scenario :
Perl App\Script
--------------------------------------------------------------------------
define process1 (E.G. sub within this app)
define process2 (E.G. external sub within different app)
define process3 (E.G. sub within this app)
define process4 (E.G. external sub within different app)
define process5 (E.G. external sub within different app)
fire all processes at once
wait for return data from each process before continuing
print the return values of all the different processes fired
--------------------------------------------------------------------------
One of the main reasons I would like to use this kind of algorithm within Perl is to increase speed performance. If process1 through to process3 each takes 3 seconds, then process4 through to process5 each takes 5 seconds then in a serial processing piece of code my execution time would be roughly the sum of each, in this case 19 seconds.
But I would like to fire these off in parallel to make processing time roughly 5 seconds. The sum of the longest process. Is the answer in the IPC documentation? Because I have failed to see how I can use the methods for this kind of end result!
If not then is there another area of Perl that might hold some answer for me?
Kind Regards,
Martyn Jones
**********************************************************************
This e-mail (including any documents which may accompany it) contains
information which is confidential and may also be privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s) please note that any form of
distribution, copying or use of this e-mail or the information in it
or attached to it is strictly prohibited and may be unlawful.
If you have received this e-mail in error please notify us immediately
by e-mail to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 and
delete the e-mail.
Please advise immediately if you or your employer do not consent to
Internet E-Mail for messages of this type.
Information or opinions in this message that do not relate to the
business of Windsor plc and/or subsidiary and/or associated companies
shall be treated as neither given or endorsed by it.
**********************************************************************
