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

Does apple use unix?

512


What is unix and its features?

552


What is ps1 and ps2 in unix?

501


What is the use of -l when listing a directory?

483


What is difference between find and grep in unix?

489






What does tr H do in unix?

510


Explain the term filter.

523


What are the advantages and disadvantages of unix operating system?

517


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?

706


Is learning unix useful?

488


How to stop an infinite loop in unix?

503


Is it possible to count number char, line in a file; if so, How?

711


Who developed unix operating system?

506


What is page fault? Its types?

518


What are the different versions of unix?

481