线程的6个状态:new,runnable(ready,running),timedwaiting,waiting,blocked,teminated

  • 哪些操作释放锁:
    wait()

  • 哪些操作不会释放锁:
    sleep(),yield(),suspend(),resume()