|
Software systems in many circumstances need awareness of their resource
usage. Meeting performance requirements often requires the ability to
manage consumption of resources provided by the environment. Resource
management is traditionally handled by operating systems, but the growing
need to use safe languages in the systems programming domain adds increased
pressure to equip them with resource management capabilities at a level of
abstraction that fits gracefully with the language.
This paper proposes an extensible, flexible, and widely applicable resource
management interface for the Java™ platform. The interface is small,
but capable of modeling a variety of resources and resource management
policies. In particular, applicationspecific resources can be defined, as
well as more traditional computational resources such as heap memory and
processor time. The interface is presented here in detail, along with a
series of examples and a description of a prototype implementation.
|