How can the wait() and notify() methods be called on Objects that are not threads?

前端 未结 9 981
耶瑟儿~
耶瑟儿~ 2020-11-29 19:00

How can the wait() and notify() methods be called on Objects that are not Threads? That doesn\'t really make sense, does it?

Surely, it mus

9条回答
  •  一生所求
    2020-11-29 19:25

    In Java all Object implements these two methods, obviously if there are not a monitor those two methods are useless.

提交回复
热议问题