Patent ID: 7028298
Filing Date: 2006-04-11
Classification: G06F,Y02D

Abstract:
1. A computer-implemented method for managing resource usage of code downloaded to a computer system, the method comprising: for each code downloaded to the computer system, associating a resource indicator with all threads that are executed directly by the downloaded code and all threads that are initiated by the downloaded code, wherein all of the threads that are executed directly by the downloaded code and all threads that are initiated by the downloaded code are defined as a set of related code; associating the set of related code with each resource portion of a particular resource that is allocated for the set of related code; disassociating, through a garbage collection procedure, the set of related code with each resource portion of the particular resource that is deallocated for the set of related code; and updating the resource indicator every time that the set of related code changes its actual collective resource usage of a particular resource so that the resource indicator only tracks actual resource usage of the set of related code, wherein the updating includes increasing the resource indicator every time the resource portion is allocated for the set of related code and decreasing the resource indicator every time the resource portion is deallocated for the set of related code.