Method and system for speeding up mutual exclusion
First Claim
1. A method for managing a multithreaded computer system comprising:
- determining through a non-atomic operation if ownership of a lock by a first thread has been discontinued; and
assigning ownership of said lock to a thread executing a compare-and-swap operation in response to a determination that said ownership of said lock by said first thread has been discontinued.
1 Assignment
0 Petitions
Accused Products
Abstract
In a multiprocessor computer system, a lock operation is maintained with a thread using non-atomic instructions. Identifiers are assigned to each thread. Flags in conjunction with the thread identifiers are used to determine the continuity of the lock with a thread. However, in the event continuity of the lock with the thread ceases, a compare-and-swap operation is executed to reset the lock with the same thread or another thread. Similarly, in the event there has been a collision between two or more threads requesting the lock, a compare-and-swap operation is executed to assign the lock to one of the requesting threads. Accordingly, prolonged ownership of a lock operation by a thread is encouraged to mitigate use of atomic operations in granting of the lock to a non-owning thread.
-
Citations
19 Claims
-
1. A method for managing a multithreaded computer system comprising:
-
determining through a non-atomic operation if ownership of a lock by a first thread has been discontinued; and
assigning ownership of said lock to a thread executing a compare-and-swap operation in response to a determination that said ownership of said lock by said first thread has been discontinued. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer system comprising:
-
a lock manager adapted to determine through a non-atomic operation if ownership of a lock by a first thread has been discontinued;
said manager adapted to assign ownership of said lock to a thread executing a compare-and-swap operation in response to a determination by said manager of discontinuation of ownership of said lock by said first thread. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. An article comprising:
-
a computer-readable signal-bearing medium;
means in the medium for determining through a non-atomic operation if ownership of a lock by a first thread has been discontinued; and
means in the medium for assigning ownership of said lock to a thread executing a compare-and-swap operation in response to a determination that said ownership of said lock by said first thread has been discontinued. - View Dependent Claims (14, 15, 16, 17, 18, 19)
-
Specification