waitFor()

I have the following code to kick-off another thread named MSA.

try {
Process proc = Runtime.getRuntime().exec("../clustalwModified/MSA");
} catch (Exception e) {}

I want to put the current thread on hold till MSA has finished. I know that I need to use "waitFor()", but where exactly should I put it?

Thank you

請您先登陸,再發跟帖!