Broadcast receiving terminal and program execution method
First Claim
Patent Images
1. A broadcast receiving terminal, comprising:
- a processor;
a program executioner configured to control execution of a program among a plurality of programs including a specified program 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 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 to determine whether or not the program reserves the resource, anda resource reservation program notifier configured to notify of the reservation of the resource which is permitted to reserve the resource, 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 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.
2 Assignments
0 Petitions
Accused Products
Abstract
Under a resource manager, unexpected blocking is prevented without calling a handler for resolving a resource contention, by assigning a priority level depending on the program that has requested for a reservation of a resource as well as by assigning a special priority level which permits a reservation of a resource without any conditions in the case of a program which is urgently needed such as an EAS module.
21 Citations
2 Claims
-
1. A broadcast receiving terminal, comprising:
-
a processor; a program executioner configured to control execution of a program among a plurality of programs including a specified program 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 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 to determine whether or not the program reserves the resource, and a resource reservation program notifier configured to notify of the reservation of the resource which is permitted to reserve the resource, 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 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.
-
-
2. A program execution method for executing a program in a broadcast receiving terminal, comprising:
-
controlling, via a program executioner, execution of a program among a plurality of programs including a specified program according to a priority level of the program; detecting, via a resource contention detector, when a reservation of a resource is requested according to the execution of the program performed by said program executioner, 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; determining, via a resource reservation program determiner, whether or not the program reserves the resource, and notifying, via a resource reservation program notifier, of the reservation of the resource which is permitted to reserve the resource, 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 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, permitting, via the resource reservation program determiner, 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.
-
Specification