Patent ID: 7761872
Filing Date: 2010-07-20
Classification: G06F

Abstract:
1. A method for virtualizing a lock of an immutable shared object, comprising method operations of: determining whether any threads have locked the immutable shared object; if no threads have locked the immutable shared object, the method includes allowing threads of different tasks to fast lock and fast unlock the immutable shared object; if a first thread requests the lock of the immutable shared object fast locked by a second thread and a task of the first thread is equivalent to a task of the second thread, the method includes inflating the lock of the immutable shared object and blocking the first thread, and allocating storage for a heavyweight representation of the lock for the task of the second thread that fast locked the immutable shared object; and if the first thread requests the lock of the immutable shared object fast locked by the second thread and the task of the first thread is different from the task of the second thread, the method includes virtualizing the lock of the immutable shared object and granting the virtualized lock to the first thread.