illegal thread state exception.
I created a thread that runs a process with some 1 gb of data throughput. the process exits for low data. but for huge data. it says illegal thread state of exception.
sample code :
......
Runtime rt = Runtime.getRuntime();
Process child =rt.exec("myprocess.exe hugefile.txt");
child.exitValue();
....
here hugefile.txt contains some 30000 lines of text.
for thisdata. its shouldnt work.
can u suggest me one of the efficient and effective code for
thread processing.
please help me.

