I need to write and read the variable size strings into and from the
Take for example
There are 10 child processes acting as a producer
C1, C2..... C10
There is 1 parent process acting as a consumer
There is one shared memory created in windows using file mapping object
by the parent process .
All the child processes wants to write variable size bytes ( array of
characters ) into the shared memory and simoultaneously the parent
process needs to consume them.
Can anyone please suggest me the way to organize the reading and
writing the string to the shared memory keeping in mind the
I want to know how can i maintain shared memory header section that
will give information to the child and parent process to write and read
simoultaneously to the shared memory.
I want to implement something like ring buffer concept in the shared
Read this link to understand the ring buffer concept.