Program Termination

If a program is terminated at the middle of execution in UNIX, What will happen to the program?

Questions by sweetysmarty   answers by sweetysmarty

Showing Answers 1 - 3 of 3 Answers

UncaAlby

  • May 16th, 2010
 

Nothing, actually. The OS will halt program execution, retrieve whatever resources the program was using, close whatever files it had open, and go back to doing everything else an OS does.

If there is something that needs to occur when a program is terminated; e.g., if the program needs to close its own files gracefully and predictably; then that program needs to implement signal handlers to catch the most common termination signals.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions