线程锁通过synchronized(类或对象)关键字创建线程锁。synchronized(类或对象){}synchronized 方法。线程锁的内容绑定同一个。suspend()的线程暂停不会释放线程锁,容易发生死锁