}
return ret;
}
public jpvmTaskStatus pvm_tasks(jpvmConfiguration conf, int which) {
jpvmTaskStatus ret = null;
if(conf==null || which<0 || which>=conf.numHosts)
return null;
try {
jpvmBuffer buf = new jpvmBuffer();
pvm_send(buf,conf.hostDaemonTids[which],
jpvmDaemonMessageTag.jpvmdTaskStatus);
jpvmMessage m = pvm_recv(jpvmDaemonMessageTag.jpvmdTaskStatus);
ret = new jpvmTaskStatus();
ret.hostName = conf.hostNames[which];
ret.numTasks = m.buffer.upkint();
if(ret.numTasks==0) {
ret.taskNames = null;
ret.taskTids = null;