IPC

Hi,

I need to separate the GUI from a process sampling my I/O

Assuming that I know PID how can I send data from one process to another?
( however the process which is sampling can’t wait for the replay otherwise sampling will be corrupter :confused: )

Thanks for any help!

Shared Memory will be the fastest and there is no waiting for replies, also if the data is only flowing one way there isn’t much of a syncronization issue.

Jason

thx!

I used shared memory - indeed for my purposes is ideal

I would do it the other war around. The process doing the sampling would keep the data in memory. When new data comes in it would notify (select() or io_notify() ) the GUI to come and get it ( via a read() or MsgSend).

I use shared memory only as a last resort, if throughput is an issue. Being message base gives so much flexibility and modularity.