Question: 1. (3 Marks) You are given the following C program: Assume that the parent process ID is 560 and the child process ID is 561.

 1. (3 Marks) You are given the following C program: Assume

1. (3 Marks) You are given the following C program: Assume that the parent process ID is 560 and the child process ID is 561. What is the output of the program? 2. (3 Marks) How many times will this program print "HELLO"? Briefly justify your answer. #include $$ #include $$ #include $$ #include $$ int main() $\{\quad$ if ( execl ("/bin/ls", "1s", NULL) ==-1) { $\quad$ printf("HELLO\backslashn"); $\quad$ printf ("HELLO\backslashn"); CS.VS.924 9

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!