Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions