40 pts follow the example programs unix pipe c named pipe c and shm posix combined 5149350


(40 pts) Follow the example programs unix pipe.c, named pipe.c and shm-posix-combined.c to write three versions (two pipe ver (40 pts) Follow the example programs unix pipe.c, named pipe.c and shm-posix-combined.c to write three versions (two pipe versions and one shared memory version) of an interprocess communication program (A8p2 unixpipe.c(pp), A8p2 namedpipe.c (pp) and A8p2 shm.c(pp)) in C/C++. Each version should create two processes úsing fork. One of the two processes should send or share four random intergers ab.cd in the range from 0 to 99 inclusive (that are interpreted as the coordinates of two points A,B in the plane A(ab) and B(Gd)) to the other process. The sending process should printout the coordinates of the two points A(ab) and B(c.d) The receiving process should printeut the Euclidean distance d(A.B) between the two points A(a,b) and B(c.d). Sample runs of the programs in 1& 2 are shown below. You do NOT need to submit screen shots. Instead submit source code files

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now