int old=this.num_threads;
this.num_threads=threads;
System.out.println("sender threads set to " + num_threads + " (from " + old + ")");</BUG>
}
void setNumMessages() throws Exception {
<BUG>num_msgs=Util.readIntFromStdin("Number of RPCs: ");

System.out.println("Set num_msgs=" + num_msgs);
print=num_msgs / 10;</BUG>
}

for(Invoker invoker: invokers)
invoker.start();
for(Invoker invoker: invokers)
invoker.join();
System.out.println("done invoking " + num_msgs + " in " + destination);
}
void setSenderThreads() throws Exception {
int threads=Util.readIntFromStdin("Number of sender threads: ");
disp.callRemoteMethods(null, new MethodCall(SET_NUM_THREADS, threads), RequestOptions.SYNC);
}
void setNumMessages() throws Exception {
int tmp=Util.readIntFromStdin("Number of RPCs: ");
disp.callRemoteMethods(null, new MethodCall(SET_NUM_MSGS, tmp), RequestOptions.SYNC);
}
