in reply to Re^2: Perl - unix process
in thread Perl - unix process

Maybe you should integrate A.perl and B.perl into a single program/process. This will avoid the overhead of inter-process communication.