1. Field of the Invention
The present invention relates generally to data processing systems. More specifically, the present invention relates to a method, system, and computer program product for managing memory.
2. Description of the Related Art
Currently garbage collectors automatically free memory previously allocated by applications. A garbage collector is a software routine that searches memory for areas of inactive data and instructions in order to reclaim that space for a general memory pool, which is sometimes referred to as a heap. Generally, garbage collectors discard unreachable objects from memory, leaving reachable objects intact. Unreachable memory is a block of memory allocated dynamically where the program that allocated the memory no longer has any reachable pointer that refers to it. Similarly, an unreachable object is a dynamically allocated object that has no reachable reference to it.
In dynamic memory allocation implementations that employ a garbage collector, objects are reclaimed after they become unreachable. The garbage collector is able to determine if an object is reachable; any object that is determined to no longer be reachable can be deallocated. Many programming languages, including many object oriented programming languages, use automatic garbage collection.
However, object reachability does not necessarily imply usability, as an object may be obsolete and still reachable. An object is obsolete if there will be no further uses of the object by the application. Such objects are usually referred to as loitering objects. Loitering objects are obsolete objects that are still reachable.
Loitering objects is a form of memory leak that could occur in a Java™ application. Java™ and all Java™-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. A memory leak is a particular kind of unintentional memory consumption by a computer program where the program fails to release memory when no longer needed. Such memory leaks may result in degradation of application performance, and may eventually cause the application to fail due to memory shortage. Predicting, tracing, and removing loitering objects is a difficult problem. In fact, there is no known algorithm for finding all loitering objects.
Currently, the only solutions to eliminating loitering objects are manual solutions, or are performed statically. Manual solutions are only partial in scope, and are applicable only to very small systems. Static solutions are also limited in scope and are not applicable at runtime, or for dynamically changing systems. Static solutions are also not applicable for integrated systems comprised of third-party black-box components. Some manual solutions were provided for flat objects; however, complex objects have not been adequately addressed. A flat object is an object that has no data members of non-primitive data types. In Java™, primitive values do not share state with other primitive values. A complex object is an object that has data members of non-primitive data types. Primitive types are data types provided by a programming language as basic building blocks. Primitive types are also known as built-in types or basic types.
Accordingly, there is a need for a method, a system, and computer useable program code for resolving memory leaks resulting from loitering objects.
The exemplary embodiments provide a computer implemented method, apparatus, and computer usable program code for managing memory. A suspect loitering object is detected for a set of selected applications, forming a detected object. The detected object is paged to persistent storage, forming a paged object. The paged object is deallocated from system memory, forming a deallocated object.
As will be appreciated by one skilled in the art, the present invention may be embodied as a system, method, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, the present invention may take the form of a computer program product embodied in any tangible medium of expression having computer usable program code embodied in the medium.
Any combination of one or more computer usable or computer readable medium(s) may be utilized. The computer-usable or computer-readable medium may be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CDROM), an optical storage device, a transmission media such as those supporting the Internet or an intranet, or a magnetic storage device. Note that the computer-usable or computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory. In the context of this document, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The computer-usable medium may include a propagated data signal with the computer-usable program code embodied therewith, either in baseband or as part of a carrier wave. The computer usable program code may be transmitted using any appropriate medium, including, but not limited to wireless, wireline, optical fiber cable, RF, etc.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
The present invention is described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions.
These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable medium that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable medium produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
In the depicted example, server 104 and server 106 connect to network 102 along with storage unit 108. In addition, clients 110, 112, and 114 connect to network 102. Clients 110, 112, and 114 may be, for example, personal computers or network computers. In the depicted example, server 104 provides data, such as boot files, operating system images, and applications to clients 110, 112, and 114. Clients 110, 112, and 114 are clients to server 104 in this example. Network data processing system 100 may include additional servers, clients, and other devices not shown.
In the depicted example, network data processing system 100 is the Internet with network 102 representing a worldwide collection of networks and gateways that use the Transmission Control Protocol/Internet Protocol (TCP/IP) suite of protocols to communicate with one another. At the heart of the Internet is a backbone of high-speed data communication lines between major nodes or host computers, consisting of thousands of commercial, governmental, educational, and other computer systems that route data and messages. Of course, network data processing system 100 also may be implemented as a number of different types of networks, such as for example, an intranet, a local area network (LAN), or a wide area network (WAN).
With reference now to
Processor unit 204 serves to execute instructions for software that may be loaded into memory 206. Processor unit 204 may be a set of one or more processors or may be a multi-processor core, depending on the particular implementation. Further, processor unit 204 may be implemented using one or more heterogeneous processor systems in which a main processor is present with secondary processors on a single chip. As another illustrative example, processor unit 204 may be a symmetric multi-processor system containing multiple processors of the same type.
Memory 206, in these examples, may be, for example, a random access memory or any other suitable volatile or non-volatile storage device. Persistent storage 208 may take various forms depending on the particular implementation. For example, persistent storage 208 may contain one or more components or devices. For example, persistent storage 208 may be a hard drive, a flash memory, a rewritable optical disk, a rewritable magnetic tape, or some combination of the above. The media used by persistent storage 208 also may be removable. For example, a removable hard drive may be used for persistent storage 208.
Communications unit 210, in these examples, provides for communications with other data processing systems or devices. In these examples, communications unit 210 is a network interface card. Communications unit 210 may provide communications through the use of either or both physical and wireless communications links.
Input/output unit 212 allows for input and output of data with other devices that may be connected to data processing system 200. For example, input/output unit 212 may provide a connection for user input through a keyboard and mouse. Further, input/output unit 212 may send output to a printer. Display 214 provides a mechanism to display information to a user.
Instructions for the operating system and applications or programs are located on persistent storage 208. These instructions may be loaded into memory 206 for execution by processor unit 204. The processes of the different embodiments may be performed by processor unit 204 using computer implemented instructions, which may be located in a memory, such as memory 206. These instructions are referred to as program code, computer usable program code, or computer readable program code that may be read and executed by a processor in processor unit 204. The program code in the different embodiments may be embodied on different physical or tangible computer readable media, such as memory 206 or persistent storage 208.
Program code 216 is located in a functional form on computer readable media 218 that is selectively removable and may be loaded onto or transferred to data processing system 200 for execution by processor unit 204. Program code 216 and computer readable media 218 form computer program product 220 in these examples. In one example, computer readable media 218 may be in a tangible form, such as, for example, an optical or magnetic disc that is inserted or placed into a drive or other device that is part of persistent storage 208 for transfer onto a storage device, such as a hard drive that is part of persistent storage 208. In a tangible form, computer readable media 218 also may take the form of a persistent storage, such as a hard drive, a thumb drive, or a flash memory that is connected to data processing system 200. The tangible form of computer readable media x18 is also referred to as computer recordable storage media. In some instances, computer recordable media 218 may not be removable.
Alternatively, program code 216 may be transferred to data processing system 200 from computer readable media 218 through a communications link to communications unit 210 and/or through a connection to input/output unit 212. The communications link and/or the connection may be physical or wireless in the illustrative examples. The computer readable media also may take the form of non-tangible media, such as communications links or wireless transmissions containing the program code.
The different components illustrated for data processing system 200 are not meant to provide architectural limitations to the manner in which different embodiments may be implemented. The different illustrative embodiments may be implemented in a data processing system including components in addition to or in place of those illustrated for data processing system 200. Other components shown in
As one example, a storage device in data processing system 200 is any hardware apparatus that may store data. Memory 206, persistent storage 208, and computer readable media 218 are examples of storage devices in a tangible form.
In another example, a bus system may be used to implement communications fabric 202 and may be comprised of one or more buses, such as a system bus or an input/output bus. Of course, the bus system may be implemented using any suitable type of architecture that provides for a transfer of data between different components or devices attached to the bus system. Additionally, a communications unit may include one or more devices used to transmit and receive data, such as a modem or a network adapter. Further, a memory may be, for example, memory 206 or a cache such as found in an interface and memory controller hub that may be present in communications fabric 202.
Exemplary embodiments provide for an automated, self-healing method for dealing with loitering objects. Self-healing means a system for monitoring for performance issues. The monitor analyzes the system to detect anomalies, determines the root cause of the anomalies, and fixes the problem. Fixing may take many forms, including, re-configuring the system, altering existing code, and so forth. In short, the system resolves the problem itself, with no intervention from outside source or human user.
Specifically, exemplary embodiments include a mechanism, an algorithm, and supporting data structures for solving the loitering objects problem. The mechanism may be implemented as a standalone solution or the mechanism may be integrated into other mechanisms. A prominent target for such integration would be the Java™ garbage collector.
Exemplary embodiments may be implemented in any object oriented programming language. The main idea of the algorithm is to locate live objects that are suspected as being loitering objects and “page” the suspected live objects to persistent storage. A live object is an object that has been constructed and initialized by an application along with the data members of the object, and the application has a reference to the object. The term “page” here (and throughout this document) refers to “logical paging.” Logical paging is a process by which an object is moved from the main memory to an external, persistent store, and possibly moved back to main memory again at a later time. This definition aims to distinguish between logical paging and physical paging. Whereas logical paging refers to moving objects to persistent storage, physical paging refers to moving whole pages to persistent storage. In particular, in computer operating systems that have their main memory divided into pages, physical paging, sometimes called swapping, is a transfer of pages between main memory and an auxiliary store, such as hard disk drive.
Paging the suspected live objects to persistent storage avoids the need to explicitly find out whether the suspected live objects are indeed loitering objects. In case these suspected live objects are needed by the application later on, the suspected live objects are re-loaded from persistent storage to memory, with all related synchronization issues being handled carefully, to avoid inconsistencies. Exemplary embodiments are designed to handle complex objects where each object may include a whole hierarchy of objects, and where objects may be referenced by multiple other objects.
Exemplary embodiments provide an automated run-time method for addressing the problem of loitering objects. Unlike previous solutions, which address memory problems on a system wide basis, exemplary embodiments manage memory leak problems on an application-by-application basis. That is, exemplary embodiments perform memory management when an application needs memory as opposed to when the entire system needs memory.
Exemplary embodiments detect suspect loitering objects by combining several criteria into a heuristic. A heuristic is the means of or relating to exploratory problem-solving techniques that utilize self-educating techniques, as in the evaluation of feedback, to improve performance. In an exemplary embodiment, the heuristic comprises at least one of the following three criteria: (1) the objects are part of collections, (2) the objects are annotated as suspected loitering objects, and (3) the objects are not accessed. That is, the last access time of the object is inspected. In various implementations, a user may wish to add other criteria specific to the user's problem or environment as part of the heuristic.
In another exemplary embodiment, suspect loitering objects are detected using a systematic algorithm. A systematic algorithm may be alternatively called “algorithm,” “analytic method,” “analysis method,” or “analytic algorithm.” A systematic algorithm examines all alternatives of relevance to a solution to analyze the problem at hand, whereas heuristics select a subset of the alternatives in and “educated” way.
The detected suspect loitering objects are paged to persistent storage. In an exemplary embodiment, any access to a suspect loitering object is performed via a proxy. A proxy is an intermediary unit managing interaction between other units, e.g., as a broker. Another exemplary embodiment may implement the same functionality within its healing unit, and not in separate proxies.
When an application needs to reference the paged objects, the suspect loitering objects are correctly re-loaded, possibly via proxy brokerage, and synchronized when the application needs them. When the object is paged to persistent storage, a custom serializer is invoked. A serializer is a method for converting object data to another form of data, such as binary or eXtensible Mark-up Language (XML). The serializer computes and stores a fingerprint for each stored object. A fingerprint is a numeric value computed for an object as a cryptographic checksum. The fingerprint is used to check an object's integrity. A stream-unique object identifier is also generated. A stream-unique object identifier is a numeric value that the object received at the relevant output stream during the serialization. In the case of an implementation in Java™ code, the Java™ hash code value of the stored object is also computed and stored. The data elements described above, for all of the objects managed by the healing unit, are all maintained within a data repository denoted as “healing data repository”. The healing data repository further holds the information needed for correct management of the healed objects, e.g., the proxy managing each object. After the “healing data repository” is populated, the reference to the object is set to null. The object is collected by the garbage collector at a later time.
In exemplary embodiments, a finalization mechanism is leveraged. For example, in one exemplary embodiment implemented utilizing the Java™ programming language, if an object has a finalize method, the JVM guarantees that the finalize method runs before the garbage collector frees the object's memory. A finalize method is typically used to release system resources. The call to the finalize method for a paged object is intercepted by the self-healing framework. When the finalize method is called for an object, there are no references to the object and the object is no longer considered as system memory resident. Thus, the relevant entries in the “healing data repository,” used for synchronization processes when deserializing objects from persistent storage, are removed. In exemplary embodiments, a method used for paging objects to persistent storage and populating the relevant entries in the “healing data repository” of the healing unit is called. For example, in an exemplary embodiment implemented utilizing the Java™ programming language, the method is referred to as an onObjectFinalize method. This method updates the paged version of the object in case there was a change in the object's state between the time the object was saved and the current time in which the object is about to be garbage collected.
The onObjectFinalize method updates the paged version of the suspected loitering object in case there was change in the suspect loitering object's state between the time the suspect loitering object was saved and the time of garbage collection. Then, a new fingerprint is calculated for the suspect loitering object. The new fingerprint is compared with the value saved on persistent storage for the suspected loitering object that was calculated by the serializer. If there is a difference between the fingerprints, then a change has occurred to the suspected loitering object and the on-persistent storage representation of the suspected loitering object is updated correspondingly.
For suspected loitering objects that have been paged and then are later accessed by the application, if the proxy or the healing unit references a suspected loitering object that is in system memory, the suspected loitering object is used directly. Otherwise, the healer uses the serializer to deserialize the suspected loitering object from the hard drive. A healing unit may comprise one or more healing units. In an alternate implementation, a healer is separate from a healing unit. The healer synchronizes between the memory objects and the deserialized objects to avoid any discrepancies. This is necessary because, in some healing cases, where objects are not flat, some data members of an object “A” may be in memory while others are on persistent storage. This happens when the former data members are referenced by objects external to “A”.
There may be cases in which one would like to apply memory leak resolution without having an explicit indication of a memory leak problem. For instance, an application may be developing a memory shortage problem even before a clear indication of memory shortage can be determined. Therefore, it might be useful to activate the memory leak resolution process even without an indication of a problem. In some cases, there may be applications for which it is known or suspected that memory leaks will occur sometime during the application's lifetime. In such cases, activating the memory resolution mechanism can serve as a preventive action.
Even with no knowledge regarding the possibility of memory leaks for a specific application, activating the memory resolution process regardless of a problem being detected may prove beneficial. Additionally, given the relatively low overhead of the memory resolution process, which may be controlled by configuring the parameters of the process such as, for example, the frequency of paging, periodically running exemplary embodiments allows for the resolution of unknown memory leaks at a relatively low overhead. This is somewhat similar like taking vitamins even though you have no illness.
Thus, exemplary embodiments provide for manually initiating the memory resolution process for a set of selected applications. A set of selected applications comprises one or more selected applications. Other exemplary embodiments provide for scheduling the memory resolution process to be initiated periodically for a set of selected applications. Further, in an exemplary embodiment, a set of selected applications may be chosen automatically, based on a set of rules. The exemplary embodiments increase availability of memory resources without having an indication of memory shortage, at a cost of a small reduction in the performance of the application.
While in the present example application 302 is a single application, it should be understood that other exemplary embodiments apply to a set of applications, wherein the set is comprised of one ore more selected applications. Further, it should be understood that the set of selected applications may be selected manually by a user or automatically, by the system or a monitor, such as healing unit 308, according to a set of rules.
Application 302 is an object oriented language application that references objects stored in memory 304. Healing unit 308 is a self-healing unit for data processing system 300. Self-healing means a system for monitoring for performance issues. The monitor, healing unit 308, analyzes data processing system 300 to detect anomalies, determine the root cause of the anomalies, and fix the problem. Fixing may take many forms, including, re-configuring a data processing system, altering existing code, and so forth.
When healing unit 308 determines that application 302 needs more memory, healing unit 308 detects suspect loitering objects, and invokes serializer 312 to page the detected objects to persistent storage, disk 306. Data structures corresponding to the paged suspect loitering object are populated in healing data repository 314. Garbage collector 310 deallocates the object when invoked.
In another exemplary embodiment, rather than healing unit 308 detecting suspect loitering objects for application 302 in response to healing unit 308 determining that application 302 needs more memory, healing unit 308 is implemented such that healing unit 308 periodically 308 detects for suspect loitering objects for application 302. Further, in another exemplary embodiment, healing unit 308 is implemented such that a user manually initiates healing unit 308 to detect suspect loitering objects for application 302.
Further, in alternate embodiments, the operation of
If it is determined that the object is not part of a collection (a “no” output to step 504), a determination is made as to whether the object is annotated as a suspect (step 506). Annotation of objects can be performed in at least one of the following two (2) ways. First is manual annotation. Manual annotation is where a developer adds annotations to a program code at the locations in the code that the programmer perceives as appropriate, using externally held information about the chances of objects to be suspected for loitering. Second is automated annotation. Automated annotation is where common code patterns are automatically detected; for example, collection handling with poor object addition and disposal and then annotations are added to the objects in which suspect patterns have been identified. If it is determined that the object is annotated as a suspect (a “yes” output to step 506), then the object is marked as a suspect loitering object (step 510). The object is sent for paging (step 512) and the operation ends. If it is determined that the object is not annotated as a suspect (a “no” output to step 506), a determination is made as to whether the object is not accessed (step 508). Typically, this determination is made by examining the last time the object was accessed.
If it is determined that the object is being accessed (a “no” output to step 508), then the object is not a loitering object and the operation ends. If it is determined that the object is not being accessed (a “yes” output to step 508), then the object is marked as a suspect loitering object (step 510), sent for paging (step 512) and the operation ends.
Exemplary embodiments detect suspect loitering objects by combining several criteria into a heuristic. In an exemplary embodiment, the heuristic comprises at least the following three criteria: (1) the objects are part of collections, (2) the objects are annotated as suspected loitering objects, and (3) the objects are not accessed. That is, the last access time the object is inspected. In various implementations, a user may wish to add other criteria specific to the user's problem or environment as part of the heuristic.
A version of the paged object in system memory is updated (step 712). For example, a method of a healer for paging objects to persistent storage updates the paged version of the suspected loitering object. A new fingerprint is generated for the suspect loitering object (step 714). The new fingerprint is compared with fingerprint for the paged object, which is a value saved on persistent storage for the suspected loitering object (step 716). Responsive to a determination that there is a difference between the new fingerprint and the fingerprint, updating the paged object (step 718) and the operation ends. In other words, the on-persistent storage representation of the suspected loitering object is updated correspondingly and the operation ends.
If the operation determines that the suspect loitering object is not in memory (a “no” output to step 804), the suspect loitering object is deserialized from persistent storage (step 808). For example, the healer uses a serializer to deserialize suspect loitering objects from persistent storage. The in memory objects and the deserialized objects are synchronized to avoid any discrepancies (step 810). For example, the healer synchronizes between the he in memory objects and the deserialized objects. The deserialized object is returned after the synchronization to the requesting application (step 812) and the operation ends.
Thus, exemplary embodiments provide for an automated, self-healing method for dealing with loitering objects. Specifically, exemplary embodiments include a mechanism, an algorithm, and supporting data structures for solving the loitering objects problem. The mechanism may be implemented as a standalone solution, or the mechanism may be integrated into other mechanisms. Exemplary embodiments may be implemented in any object oriented programming language. The main idea of the algorithm is to locate live objects that are suspected as being loitering objects and “page” the suspected live objects to persistent storage. Paging the suspected live objects to persistent storage avoids the need to explicitly find out whether the suspected live objects are indeed loitering objects. In case these suspected live objects are needed by the application later on, the suspected loitering objects are re-loaded from persistent storage to memory, with all related synchronization issues being handled carefully, to avoid inconsistencies.
Exemplary embodiments are designed to handle complex objects where each object may include a whole hierarchy of objects, and where objects may be referenced by multiple other objects. Exemplary embodiments provide an automated run-time method for addressing the problem of loitering objects. Unlike previous solutions, which address memory problems on a system wide basis, exemplary embodiments manage memory leak problems on an application-by-application basis. That is, exemplary embodiments perform memory management when an application needs memory as opposed to when the entire system needs memory.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
The invention can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment containing both hardware and software elements. In a preferred embodiment, the invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, etc.
Furthermore, the invention can take the form of a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system. For the purposes of this description, a computer-usable or computer readable medium can be any tangible apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
The medium can be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system (or apparatus or device) or a propagation medium. Examples of a computer-readable medium include a semiconductor or solid-state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk. Current examples of optical disks include compact disk-read only memory (CD-ROM), compact disk-read/write (CD-R/W) and DVD.
A data processing system suitable for storing and/or executing program code will include at least one processor coupled directly or indirectly to memory elements through a system bus. The memory elements can include local memory employed during actual execution of the program code, bulk storage, and cache memories, which provide temporary storage of at least some program code in order to reduce the number of times code must be retrieved from bulk storage during execution.
Input/output or I/O devices (including but not limited to keyboards, displays, pointing devices, etc.) can be coupled to the system either directly or through intervening I/O controllers.
Network adapters may also be coupled to the system to enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modem and Ethernet cards are just a few of the currently available types of network adapters.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiment was chosen and described in order to best explain the principles of the invention, the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.