Broadcast receiving terminal and program execution method
First Claim
Patent Images
1. 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, anda 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.
0 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.
-
Citations
2 Claims
-
1. 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.
-
-
2. A program execution method in a broadcast receiving terminal, the method comprising:
-
storing, via a storage, a program among a plurality of programs including a specified program; controlling, via a processor, execution of the program according to a priority level of the program; detecting, via the processor, when a reservation of a resource is requested according to the execution of the program performed by 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 the processor; determining, via the processor, whether or not the program reserves the resource, and notifying the program, of the reservation of the resource, which is permitted to reserve the resource, via the processor, based on the determination made by the processor, 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, calling, via the processor, the resource contention handler for resolving the contention and determining, via the processor, 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, determining, via the processor, 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, determining, via the processor, to permit 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 notifying, via the processor, that the resource has been released by the specified program, after the specified program has been executed.
-
Specification