不妨使用进程队列,设置标志位,检验看是否退出synchronized可以实现进程的异步,方法就是:public int synchronized <methodname>(<parmenmnet list>){
   //body of the method.....
}