int nExecs = getNumExec();
/* start RMI threads to read output from child process */
inThread = AccessController.doPrivileged(
new NewThreadAction(new PipeWriter(in, out, "out", nExecs),
"out", true));
outThread = AccessController.doPrivileged(
new NewThreadAction(new PipeWriter(in1, out1, "err", nExecs),
"err", true));
inThread.start();
outThread.start();
}