各位大牛
Java代碼:
final ScheduledExecutorService scheduler = Executors
final BusinessService service = new BusinessService();
for(int i =
{
scheduler
@Override
public void run() {
service
}
}
}
這個時候
Java代碼:
synchronized
解決方法
From:http://tw.wingwit.com/Article/program/Java/gj/201311/27607.html