Previous Topic: OverviewNext Topic: Processing


Locking

DEFRAG SMP locking is used to interact with backwards processing in the index, such as when a LOCBR command is issued. In such cases, DEFRAG obtains an exclusive SMP lock at the start of each key ID processing. If there are no backward requests for this key ID during the life of the DEFRAG, the lock is simply maintained. If there is a backward request during the process, DEFRAG notes where it is in the DXX and frees the SMP lock to allow the backward process to run. DEFRAG then reestablishes the lock, rereads its blocks, and continues as before. Backwards processing obtains a shared SMP lock. Information about DEFRAG SMP locking can be found in the SMP Informational Report obtained by specifying it with the SMPTASK MUF startup option. See the description of the DEFRAG event shown in the SMP Informational Report section.