Recyclable locking for multi-threaded computing environments
AssigneeMicrosoft Corporation
InventorOndrej Such
Life of this patent
Estimating the term…
Abstract
Recyclable locking for multi-threaded computing environments is disclosed. In one embodiment, a system includes at least one thread, a pool of locks, at least one object, and a recyclable locking mechanism. Each object has an associated variable. The mechanism associates a lock with an object using the associated variable of the object as a pointer, upon a first request by a thread.
Claims5
A system comprising:
- at least one thread;
- a pool of locks;
- at least one object that is capable of representing a resource needed by the at least one thread, the at least one object having a variable;
- and,
- a recyclable locking mechanism for associating a lock from the pool of locks with the at least one object using the variable as a pointer when requested by the at least one thread, the lock returning to the pool of locks without having to destroy the at least one object when the at least one thread no longer needs to access the resource.
A computer comprising:
- a processor;
- a computer-readable medium;
- and,
- a recyclable locking mechanism program executed by the processor from the computer-readable medium to associate a lock with an object using a variable of the object as a pointer when requested by a thread, the lock being capable of returning to a pool of locks without having to destroy the object when the object is no longer needed by the thread.
A computer-readable medium having a recyclable locking mechanism program stored thereon for execution on a computer to associate a lock with an object using a variable of the object as a pointer when requested by a thread, the lock being capable of returning to a pool of locks without having to destroy the object when the object is no longer needed by the thread.
Dependencies are inferred from the claim text.