Friday, October 10, 2008



Program to print the odd numbers by parent process & even numbers by child process.

#include
#include

int main()
{
int array[10],pid,i=0;

printf("Enter 10 numbers : ");

while(i<10) i="i+1;" pid =" fork();" pid ="=" i="0;" 2 ="=">0)
{
printf("nIn parent processn");
printf(Odd numbers are : ");
i=0;

while(i<0)>

No comments: