java 线程问题!
由于是英语有点不是很明白! implement asynchronous procedure call is one which returns as soon as the procedure has been invoked, with the result that the caller and the invocation of the procedure proceed in parallel: 里面加了个getResult() 方法!
class AsyncFunc extends Thread{
private ... result;
public AsyncFunc(...){
...
}
public void run()[
//do calculation;
result=?;
}
boolean getResult(){
return result;
}
}
这个是什么意思,和线程有什么关系呢?