subject

Arid no is : 19-arid-898 Question 3: [2+2]

a)What, to whom and how many values a fork system call returns?

b)Assuming there is no syntax error, what is the output for the following C program for linux? All of you may need to put screenshot of your PC in which Terminal login must be your arid number.

int main()

{ pid_t fork_return;

fork_return = fork();

if (fork_return == 0) {

execlp("/bin/ls", "ls", NULL);

printf("Child process ID: %d\n", getpid());

exit(0);

}

else { wait (NULL);

printf("Parent process ID: %d\n", getpid());

}

return 0;

}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
In my email i got a message it says a quick message and in message details on who its from its says nicole and under nicole is [email protected] -
Answers: 1
question
Computers and Technology, 23.06.2019 05:30
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
Respond to the following in three to five sentences. select the workplace skill, habit, or attitude described in this chapter that you believe is most important for being a successful employee.
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
Which of the following is not an enhancement to the standard wiki to make it more attractive for corporations? encryptionwork spacespermission toolspredictive text
Answers: 2
You know the right answer?
Arid no is : 19-arid-898 Question 3: [2+2]

a)What, to whom and how many values a fork s...
Questions
question
Mathematics, 31.01.2020 19:47
question
Mathematics, 31.01.2020 19:48
Questions on the website: 13722367