two processes communicating with each other

Hi, I got this assignment and I am trying to find out how should I proceed in order to solve it :

two processes on the same computer or other computers must communicate with each other by means of a read / write mechanism. We assume that by contract, OS offers us a function which allows writing a buffer A of size D with a write function (int N, char A []) and a function that allows the reading of a buffer A of size D with a function of type read (int N, char A []). a process must communicate a float value to the other process.

Any ideas or code parts are helpful, thanks
What's to figure out?

> We assume that by contract, OS offers us....

One process
1
2
float var = 42;
write( sizeof(var), &var );



The other process
1
2
float var;
read( sizeof(var), &var );


I mean, you made no statement as to how these two processes figure out each others existence.
Registered users can post here. Sign in or register to post.