62,612
社区成员
发帖
与我相关
我的任务
分享
while( flag == 0 ) {
Thread.sleep(100);
}
int flag = 0;
void A(){
for(int i=1; i<99; i++) {
flag=0;
B();
if( flag==0 ) {
Thread.sleep(100);
}
}
}
void B() {
//....
flag = 1;
}