we know that if a parents process wait for the termnination of its child processes first, then the child processes are called foreground process, for example:
int