Patent ID: 8028289

Claim:
An application execution apparatus including a class library unit, comprising: storing unit storing at least one or more applications; and application executing unit reading the applications in the storing unit and executing each application, wherein the class library unit includes: resource providing unit providing resources to each application which is being executed; listener registration accepting unit accepting, from an application which is being executed, a request, with respect to each of the resources provided to the application, to register a listener for being notified of a change of a status of a resource provided to the application; listener registration managing unit generating a special thread for calling one or more listeners, for the application which has made the request to register the listener; and listener storing unit storing a correspondence between the application which has made the request to register the listener, the listener and the generated special thread, wherein each time a request to register a listener is accepted from an application which is being executed, the listener registration managing unit judges whether a correspondence including the application from which the request has been accepted is stored in the listener storing unit, and (i) when the correspondence is stored, the listener registration managing unit adds the listener to which the registration has been requested to the correspondence, and (ii) when the correspondence is not stored, the listener registration managing unit generates a special thread for calling the listener to which the registration has been requested, for the application, and stores the correspondence between the listener to which the registration has been requested, the generated special thread, and the application, and the class library unit further includes: a status change notifying unit, upon detecting the change of the status of a resource provided in the application, calling all listeners included in a same correspondence as the application through the special thread, and notifying the application of the change, and the application execution apparatus further comprising: application managing unit, when the application is completed, notifying the class library unit of the application, wherein the class library unit includes: listener deleting unit deleting all listeners included in a same correspondence as the application in the listener storing unit upon receiving the notification of the application, wherein the application managing unit includes: thread managing unit holding a table which shows a correspondence between applications, tasks generated for the applications, and threads for executing the applications.