Join With Me...

3:07 AM

Inter process communication with fork and pipe

main()
{
 int a[2];
int p,i;
pipe(a);
p=fork();
if(p>0)
{
write(a[1],10,2);
}
else
{
read(a[0],i,2);
printf("%d",i);
}
}

0 comments:

Post a Comment