$a=new FileProcessing($path1);
$b=new FileProcessing($path2);
$a->doProcessFile();
$b->doProcessFile();
this code run doProcessFile()
for $a
then run doProcessFile()
for $b
in sequential order.
I want run doProcessFile()
for $a
in parallel with doProcessFile()
for $b
so I can process different file in parralel.
I can do that in PHP ?
As I can see, PHP process script in sequential order only. Now I wonder if I can run multiple instances of the same script in parralel ,the difference between running scripts is a parameter I pass when I call each script. for example : php myscript.php [path1]
then I call this script a second time with different parameter.