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
How to remove the first line/header from a file in Unix?
What is Thread dump in unix?
What is the difference between unix and windows operating system?
What is the home directory in unix?
briefly describe the shell's responsibilities?
What is alias mechanism? Explain.
How to get the n-th field from a Unix command output?
What is the difference between nfs 3 and nfs 4?
Explain about shell aritmetic operators and functions?
What are links and symbolic links in UNIX file system?
What are the criteria for choosing a process for swapping out of the memory to the swap device?
Why kernel is known as the heart of unix os?
Write down some common shells with their indicators?
What is difference between ssh v1 and ssh v2?
Differentiate between paging and swapping?