Opening the paper…
Operating Systems, Quiz 2
Given the hexadecimal view of first few bytes of different files, identify the executable file (ELF file) from the options below. (Hint: The ASCII value of ’A’ = 65)
Given the hexadecimal view of first few bytes of different files, identify the executable file (ELF file) from the options below. (Hint: The ASCII value of ’A’ = 65) Figure from the original question paper Consider the code given below. int pid; pid = fork(); if (pid > 0){ pid = wait(); }else{ execlp("ls", "", NULL); exit(0); } While the `execlp("ls", "", NULL)` function is running in the child process, what is the state of the parent process?