obj.writeObject(getArray()); // sending the array to the child process for further processing
objos.flush();

As you can see, I am only creating one process and sending the entire doc to it. I would like to create two processes, split the doc into half and send the first half to the first process and second half to the second process.