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.