(1)synchronized关键字 synchronized方法synchronized块 (2)wait()方法和notify()方法 (3)Lock lock()tryLock()tryLock(long timeout, TimeUnit unit)lockInterruptibly()