You can try to use the memory mapping function.
For example, create 10 processes, each of which creates a memory file object.
And then write the string into it.