When requested by an application, a library unit provides a resource to the
application, acquires an ID for identifying the application which has requested
the resource, and stores a combination of a resource name of the provided resource
and the application ID in a table. When an application is completed, the library
unit receives an application ID of the completed application, detects a resource
name corresponding to the received application ID in the table, and collects a
resource specified by the resource name.