What is output of the following?

Answer Posted / nouff

What is output of the following?
main()
{ int z=5;
if (fork()) {
printf("\t ISZC462 ");
z=10;
}
else
printf("Net Prog");
printf(" PID =%d Z=%d \n",getpid(), z);
exit(0);
}
Is the above code leads to zombies state? If your answer is
yes explain how and re-write
the above code to get rid of these states using signal?

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe a link in unix.

490


Give a brief idea about representation of devices in unix.

528


How does unix file system work?

514


What are the file permissions and access modes in unix?

481


What scheme does the Kernel in Unix System V follow while choosing a swap device among the multiple swap devices?

530






Where unix is used today?

504


List some features of unix.

542


What do you mean by the protection fault?

551


What is hardlink and softlink in unix?

530


Explain system bootup in unix.

552


How do you delete a file in unix?

505


Explain the importance of directories in a unix system

649


What is dev null in unix?

487


Is unix a kernel?

513


How would you identify daemons in unix?

539