摘要 |
According to at least one embodiment, a method comprises determining that a thread desires a lock for accessing a resource. The method further comprises dynamically determining a portion of the resource for which a lock is to be obtained for the thread, and obtaining the lock on the determined portion. According to at least one embodiment, a system comprises a processor for executing a plurality of threads, and a resource usable by the plurality of threads. The threads are each operable to dynamically determine a portion of the resource for which a lock is to be obtained for the thread desiring to use the resource.
|