Operating System-Unix [3i Infotech Placement]: Sample Questions 78 - 78 of 78

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 78


Write in Short

Short Answer▾

How do you execute one program from within another?


  • The system calls used for low-level process creation are execlp () and execvp () . The execlp call overlays the existing program with the new one, which runs and exits.
  • The original program gets back control only when an error occurs.

    execlp (path, file_name, arguments) ;

  • A variant of eeclp called execvp is used when the number of arguments is not known in advance.

    execvp (path, argument_array) ;

Developed by: