I have two process P1 and P2. Second process P2 is running infinity. When first process is going to run then second process should going to waiting state until first is not completed.
Can you provide the easiest way to handle this situation.
Thanks !!