而目前这些代码使用进入监控(enter-monitor)和退出监控(exit-monitor)指令来实现 ynchronized 。而这些指令没有参数,所以需要扩展二进制代码的定义以支持多个锁定请求。
基于64个网页-相关网页
Exit Monitor& Alert Unit 出口监视器
The last thing to do is exit with a zero return code so that the trigger monitor will commit the GET it performed on the trigger message and wait for another.
最后需要做的事情是使用一个零返回码退出,以便触发器监控器提交它在触发器消息上执行的GET并等待另一条消息。
Article 15 Frontier health and quarantine offices shall monitor persons on entry or exit for quarantinable infectious diseases and shall take necessary preventive and control measures.
第十五条国境卫生检疫机关对入境、出境的人员实施传染病监测,并且采取必要的预防、控制措施。
While the semantics of synchronized do include mutual exclusion and atomicity, the reality of what happens prior to monitor entry and after monitor exit is considerably more complicated.
虽然 synchronized 的语义中确实包括互斥和原子性,但在管程进入之前和在管程退出之后发生的事情要复杂得多。
应用推荐