Please Suggest a option for parallel communication between 2 subroutine.
I need to start a 2nd subroutine operation at middle of subroutine A and want to run parallel with subroutine A. ALso Subroutine B need to stop at the completion of Subroutine A.
I tried to fork the process in Subroutine A and called the subroutine B from the child but didn't worked.
Sub A { 1. 2. 3. &sub B(); 4. 5.} Sub B { 1. 2. 3. 4. 5. }
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |