A
Amol
Hi,
I'm writing an application that requires exchaging large data between
processes (of the order of 300KBytes). I was trying to use shared
memory for this, but I realised that I could not set up shared memory
for more than a few tens of bytes (not even 100) on the system I was
running.
perror("shmget") prints:
shmget: Invalid argument
Is it common to use shared memory to exchange large data
between processes? If not then what is the preferred way?
Would using sockets be efficient enough? (Oh yes, and I need the
most efficient way to exchange this data)
Thanks,
~ amol
I'm writing an application that requires exchaging large data between
processes (of the order of 300KBytes). I was trying to use shared
memory for this, but I realised that I could not set up shared memory
for more than a few tens of bytes (not even 100) on the system I was
running.
perror("shmget") prints:
shmget: Invalid argument
Is it common to use shared memory to exchange large data
between processes? If not then what is the preferred way?
Would using sockets be efficient enough? (Oh yes, and I need the
most efficient way to exchange this data)
Thanks,
~ amol