Java RMI and synchronized methods

前端 未结 4 1501
感情败类
感情败类 2021-02-02 15:07

I\'m studying the book \"Distributed Systems\" (by Tanenbaum & Van Steen) and they say something that seems to conflict to what seems to be instead thought by many on Java R

4条回答
  •  臣服心动
    2021-02-02 15:17

    You should also be aware that Java multi-threading has changed significantly since 1996. The notify() and wait() methods that were part of the original language design got a lot of flack from concurrency experts and in Java 5 (2004, says wiki) high level concurrency objects like the ReentrantLock were introduced which are now the preferred way of doing things.

    So the criticisms you mention are probably correct, but outdated.

提交回复
热议问题