Question: Question 2 : [ 1 0 marks: 2 marks for each item ] ( Moderate ) Answer five of the following questions with two or

Question 2: [10 marks: 2 marks for each item](Moderate) Answer five of the following questions with two or three-sentence explanation. a) Whats the benefit of multiprocessing when there is only one processor? b) Can a child kill her/his parent, enjoying being an orphan?! c) Is it possible for a producer to write to a pipe that there is no process to consume it? d) Who is the producer and who is the consumer in below code? int fd[2]; pipe(fd); int childpid = fork(); if (childpid ==0) close(fd[1]); else if (childpid >0) close(fd[0]); e) Can TCP be done by UDP? f) Why does the accept() return a new socket for each received connection?

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 Programming Questions!