In reply to surya_mudgal:
below is the expected result.
fork
/*_A_*/run_seq1();
/*_B_*/run_seq2();
/*_C_*/forever 10 cycles run seq3();
join
//Fork-Join will start all the processes inside it(_A_, _B_ & _C_) parallel and wait for the completion of all the processes.
//process _A_ and _B_ will complete in one cycle(as you mentioned)
//process _C_ is 'forever', it will never end
have you observed different behavior?