退出线程: [NSThread exit];
暂停一段时间: [NSThread sleepForTimeInterval:0.002];
互斥锁使用格式
@synchronized(锁对象) { // 需要锁定的代码 }