Patent ID: 7574205

Claim:
A method for managing resources in a mobile terminal, the method comprising: determining whether or not a first required resource is available to perform a requested task on the mobile terminal; selectively performing the requested task based on whether or not the first required resource is currently being used by another task executing on the terminal; checking whether or not there is a second resource that is a substitute resource that can be substituted for the first required resource if the determining step determines the first required resource is currently being used by said another task executing on the terminal; determining whether or not the first required resource is locked by said another task if the checking step determines there is no substitute resource: wherein the selectively performing step forcibly terminates the requested task if the determining step determines the first required resource is locked by said another task: comparing a priority of said another task currently using the first required resource and a priority of the requested task, if the determining step determines the first required resource is not locked by said another task; terminating said another task and executing the requested task if the comparing step determines said another task has a lower priority than the requested task; and terminating the requested task if the comparing step determines the requested task has a lower priority than said another task.