Apparatus and methods for managing resource usage
First Claim
Patent Images
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.
2 Assignments
0 Petitions
Accused Products
Abstract
Disclosed is a method for managing resource usage of a particular resource by a set of related code, such as code executed on behalf of a downloaded applet. A resource indicator is associated with the related code, and the resource indicator indicates an amount of resource usage of the particular resource by the related code. The resource indicator is updated when the related code increases or decreases its collective resource usage of the particular resource.
-
Citations
32 Claims
-
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. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)
-
-
21. A computer program product, stored on a machine-readable medium, containing computer code for managing resource usage of code downloaded to a computer system, the computer program product including:
-
computer code for associating for each code downloaded to the computer system 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; computer code for associating the set of related code with each resource portion of a particular resource that is allocated for the set of related code; computer code for 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 computer code for updating the resource indicator every time that the set of related code changes its actual collective resource usage of the 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. - View Dependent Claims (22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32)
-
Specification