OpenTP1 Version 7 Programming Guide

[Contents][Index][Back][Next]

4.6.3 Specifying the maximum lock wait time

If a UAP uses a lock request to the resource for which lock has been specified by another UAP, the UAP can wait until the resource is released. If more UAPs are waiting for the resource to be released, the order in which the UAPs will wait for the resource is decided according to the priority specified in the user service definition.

When the maximum lock wait time is specified in the lock service definition, and if a UAP waiting for the resource to be released waits for longer than the specified time, the UAP returns with an error.

The lckls command is provided for you to check the maximum lock wait time and the resource for which the UAP is waiting to be released.