Skip to content

什么导致线程阻塞-58-美团 内容有问题,导致读的时候容易理解错误 #35

Description

@wyc192273

初看起来它们与 suspend() 和 resume() 方法对没有什么分别,但是事实上它们是截然不同的。区别的核心在于,前面叙述的所有方法,阻塞时都不会释放占用的锁(如果占用了的话),而这一对方法则相反。

这句话应该是
初看起来它们与wait()和notify()方法没有什么分别

这里写的给人感觉,好像是在特殊说明suspend和resume,但实际上后面发现是在说wait和notify

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions