Question: if (pid 0)t value +s 20 else if (pid >O wait(NULL) (b)What's the values printed out by the statements shown in Line X and Line

 if (pid 0)t value +s 20 else if (pid >O wait(NULL)

if (pid 0)t value +s 20 else if (pid >O wait(NULL) (b)What's the values printed out by the statements shown in Line X and Line Y //some include statements int value: 0; void "runner(void *param) int main(int arge, char "argv int pid: pthread t tid: pthread_attr t attr: pid forkO if (pid: 0) ( pthread_ attr_init(dattr): pthread_create(&tid dattr.runner NULL) pthread_join(tid NULL) printf("value : %din , value); //LineX else if (pid > o) wait(NULL): printf(-value: %d ", value); //Line y void "runner(void "param) value 10: pthread_exit(O) Explain difference(s) between shared-memory based communication and message based communication in a single system boundary. Explain how two file streams enable communication between parent and child processes an ordinary pipe 1Q.3] Answer the following questions a) Explain difference(s) between interrupt driven lo and DMA hierarchy in modern computer systems

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!