How do you stop a running process?

Answer Posted / deepa

kill

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I search for text in vi?

755


What is $0 bash?

876


Why is it called grep?

738


What is grep command in unix with examples?

807


Differentiate cmp command from diff command.

783






What is the functionality of a top command?

789


How many unix commands are there?

805


What do chown command do?

771


What does the metacharacter mean?

793


What is the use of finger command?

808


What does this command do,"$more readme.txt“?

850


What is command substitution?

863


Which unix command lists files/folders in alphabetical order?

997


How do I search for a file in unix command?

730


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 # include 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:

1949