Technical data

System Dump Analyzer
SHOW LOCK
SHOW LOCK
Displays information about all lock management locks in the system, cached
locks, or a specified lock.
Format
SHOW LOCK {lock-id | /ALL | /CACHED | /NAME=resource-name}
Parameters
lock-id
Name of a specific lock. You cannot specify both a lock-id and a resource-name
in the same command line.
Qualifiers
/ALL
Lists all locks that exist in the system. This is the default behavior of the SHOW
LOCK command.
/CACHED
Shows only cached lock blocks (LKBs).
/NAME=resource-name
Displays information about the resource associated with the lock whose resource
name begins with the specified resource-name. For case-sensitive names,
enclose the resource-name in quotation marks. You cannot specify both a
lock-id and resource-name in the same command line.
Description
The SHOW LOCK command displays the information described in Table SDA–15
for each lock management lock in the system or for the lock indicated by lock-id.
(Use the SHOW SPINLOCK command to display information about spin locks.)
You can obtain a similar display for the locks owned by a specific process by
issuing the appropriate SHOW PROCESS/LOCKS command. See the OpenVMS
System Services Reference Manual for additional discussion of the significance of
this information.
You can display information about the resource to which a lock is queued by
issuing the SHOW RESOURCE command and specifying the lock-id of the
resource.
SDA121