OpenTP1 Version 7 Programming Guide
To avoid deadlocks, UAPs should access resources with the following considerations:
- If the UAP keeps a resource until the end of the transaction, it should acquire the resource as late as possible.
- A resource that can be freed during processing should be freed as soon as possible.
- If multiple resources are to be in use, the resource access sequences of UAPs should be standardized. In addition, the resource access sequences should be standardized within one system.
- The priorities for servicing UAPs which have encountered a deadlock should be predetermined.
All Rights Reserved. Copyright (C) 2006, 2010, Hitachi, Ltd.