Patent ID: 8739174

Claim:
A broadcast receiving terminal, comprising: a storage configured to store a program among a plurality of programs including a specified program; a processor; a program executioner configured to control execution of the program, via the processor, according to a priority level of the program; a resource contention detector configured, in a case where a reservation of a resource is requested according to the execution of the program performed by said program executioner, to detect, via the processor, whether or not a contention of the resource occurs due to a fact that the requested resource has already been reserved by another program executed by said program executioner; a resource reservation program determiner configured, via the processor, to determine whether or not the program reserves the resource, and a resource reservation program notifier configured to notify the program, of the reservation of the resource, which is permitted to reserve the resource, via the processor, based on the determination made by said resource reservation program determiner, wherein, (i) when the contention occurs and the program requesting the reservation of the resource is not the specified program, (i-a) in the case where a resource contention handler is registered, call the resource contention handler for resolving the contention and determine to permit a program to reserve the resource which is under contention, according to a priority level returned from the resource contention handler, and (i-b) in the case where the resource contention handler is not registered, determine to permit the program to reserve the resource which is under contention, according to the priority level of the program, and (ii) when the contention occurs and the program requesting the reservation of the resource is the specified program, the resource reservation program determiner permits the specified program to reserve the resource without using the resource contention handler and checking whether or not the resource contention handler is registered; and the resource reservation program determiner, after the specified program has been executed, has the resource reservation program notifier notify that the resource has been released by the specified program.