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

What are positional parameters in unix?

707


Is it possible to create new a file system in UNIX?

810


You have a file called tonky in the directory honky. Later you add new material to tonky. What changes take place in the directory, inode, and file?

920


Explain what are links and symbolic links in unix file system?

743


What is home directory in unix?

665


What are the hidden files in unix?

792


Why was unix invented?

650


Is unix a network operating system?

685


What is $# in unix?

706


What are the advantages of unix?

756


How would you display the last line of a file?

693


What Happens when you execute a program?

858


Is mac a unix system?

669


How to display n-th line of a file in Unix?

761


Was unix the first operating system?

662