Hey guys i need help on this problem ..
How to solve zombie and orphan process problems ?
Please explain with an example...
How to solve zombie and orphan process problems ?
Please explain with an example...
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
main()
{
int i, j, status;
i = fork();
if (i > 0) //parent
{
j = wait(&status);
}
else //child
{
sleep(1000);
exit(0);
}
}
Comment