Issue No. 05 - May (1991 vol. 17)
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/32.90443
<p>A straightforward analytic solution method is developed which takes into account the variability of transaction size (the number of lock requests). The authors first obtain analytic expressions for the probability of lock conflict, probability of deadlock, and the waiting time per lock conflict. They then develop a family of noniterative analytic solutions to evaluate the overall system performance by considering the expansion in transaction response time due to transaction blocking. The accuracy of these solutions is verified by validation against simulation results. Also introduced is a new measure for the degree of lock contention, which is a product of the mean number of lock conflicts per transaction and the mean waiting time per lock conflict (when blocked by an active transaction). It is shown that the variability in transaction size results in an increase in both measures as compared to fixed-size transactions of comparable size. The authors also provide a solution method for the case when the processing times of transaction steps are different.</p>
two-phase locking; transaction size; lock requests; probability; lock conflict; deadlock; system performance; transaction response time; transaction blocking; simulation; lock contention; concurrency control; distributed databases; system recovery; transaction processing
A. Thomasian and I. Ryu, "Performance Analysis of Two-Phase Locking," in IEEE Transactions on Software Engineering, vol. 17, no. , pp. 386-402, 1991.