FAST RESOURCE RECOVERY AFTER THREAD CRASH
0 Assignments
0 Petitions
Accused Products
Abstract
A resource recovery system may maintain a counter in memory that indicates a number of times one or more threads of execution, which use shared resources, have crashed. The system may associate a first value of the counter with a resource allocated to a thread of the one or more threads, and may set an indicator associated with the thread to indicate whether the thread has crashed. The system may determine whether to re-allocate the resource to the thread based on the first value of the counter associated with the resource and based on the indicator associated with the thread.
-
Citations
41 Claims
-
1-21. -21. (canceled)
-
22. A method comprising:
-
receiving, by a device, a resource request for a thread, of a plurality of threads, associated with the device; storing, by the device and in a queue for allocating resources to the thread, metadata associated with a resource corresponding to the resource request and information identifying the thread; retrieving, by the device, the metadata and the information from the queue to allocate the resource to the thread; associating, by the device, a first value with the metadata, the first value corresponding to a value of a counter at a time that the resource is allocated to the thread, and the value of the counter being incremented each time any of the plurality of threads crashes; and re-allocating, by the device and when the thread crashes, the resource to the thread based on associating the first value with the metadata. - View Dependent Claims (23, 24, 25, 26, 27, 28)
-
-
29. A device comprising:
a processor to; receive a resource request for a thread, of a plurality of threads, associated with the device, store, in a memory associated with the device; metadata associated with a resource corresponding to the resource request, and information identifying the thread, retrieve the metadata and the information identifying the thread from the memory to allocate the resource to the thread, associate, based on retrieving the metadata and the information identifying the thread, the metadata with; a first value, and the information identifying the thread, the first value corresponding to a value of a counter at a time that the metadata is stored in the memory, and the value of the counter being incremented each time any of the plurality of threads crashes, and re-allocate, when the thread crashes, the resource to the thread based on associating metadata with the first value and the information identifying the thread. - View Dependent Claims (30, 31, 32, 33, 34, 35)
-
36. A non-transitory computer-readable medium storing instructions, the instructions comprising:
one or more instructions which, when executed by a processor of a device, cause the processor to; allocate a resource to a thread, of a plurality of threads associated with the device, associate, based on allocating the resource, metadata associated with the resource with a first value and information identifying the thread, the first value corresponding to a value of a counter at a time that the resource is allocated to the thread, and the value of the counter being incremented each time any of the plurality of threads crashes, and re-allocate, when the thread crashes, the resource to the thread based on associating the first value with the metadata. - View Dependent Claims (37, 38, 39, 40, 41)
Specification