i=4;//when variable is modified....seprate space is created for it...so after executing this child ....u dont want that this child act two times more for ...fork again two times...bcz else of parent is closed ....so for next time of for loop...this child can fork again..
//so make condition wrong to enter into for loop again for this child process||...do not allow this child to enter into loop again......||let this child finish here
//every new child will finish here
}
else
{
sleep(1);//let child execute 1st
i++;//for loop for parent will go on..& creating new child...