Explain command to view process running?
No Answer is Posted For this Question
Be the First to Post Answer
Explain mount and unmount command.
How to remove a crontab file?
the difference between a soft link and a hard link?
what is the advaantage of each user having its own copy of the shell?
What is “chmod” command?
What does touch command do in unix?
What happens when we execute a unix command?
What does this command do? Cat food 1 > kitty
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include<stdlib.h> # include <stdio.h> int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:
How does shebang work?
how will you convert a general file to a hidden file?
which command is used to change group?