Linux Operating System Management

  Home  Operating System Linux  Linux Operating System Management


“Linux OS Management frequently Asked Questions by expert members with experience in Linux Operating System Management. These questions and answers will help you strengthen your technical skills, prepare for the new job test and quickly revise the concepts”



99 Linux Operating System Management Questions And Answers

71⟩ What is the output of the below code? void exit_handler1(); void exit_handler2(); int main() { int pid; atexit(exit_handler1); atexit(exit_handler2); pid = fork(); if(pid == 0) { _exit(0); } else { sleep(2); exit(0); } return 0; } a) Only child executes the exit_handler 1 and 2. b) Only parent executes the exit_handler 1 and 2. c) Both parent and child executes the exit_handler 1 and 2. d) Neither parent nor child executes the exit_handler 1 and 2.

b) Only parent executes the exit_handler 1 and 2.

 164 views