Synchronized methods and blocks allow a thread to lock an object on entry and unlock the object on exit (to the method or block).
同步的方法和代码块允许线程在入口处锁定对象并在出口处解锁(针对方法或代码块)。
Thread 1 exits the synchronized block and returns instance from the getInstance() method.
线程 1 退出 synchronized 块并从 getInstance() 方法返回实例。
In WebSphere Process Server V7, the method to claim a task USES a query table and combines the query and claim methods previously used to eliminate the need for the synchronized block.
在WebSphere Process Server v 7中,声明任务的方法是用一个查询表,并结合早期用于消除同步块需求的查询和声明方法。
应用推荐