CN111277900B - Starting method and device of set top box - Google Patents

Starting method and device of set top box Download PDF

Info

Publication number
CN111277900B
CN111277900B CN201811481715.8A CN201811481715A CN111277900B CN 111277900 B CN111277900 B CN 111277900B CN 201811481715 A CN201811481715 A CN 201811481715A CN 111277900 B CN111277900 B CN 111277900B
Authority
CN
China
Prior art keywords
task
execution
tasks
sequence
execution module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811481715.8A
Other languages
Chinese (zh)
Other versions
CN111277900A (en
Inventor
徐佳宏
贾晔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ipanel TV Inc
Original Assignee
Shenzhen Ipanel TV Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ipanel TV Inc filed Critical Shenzhen Ipanel TV Inc
Priority to CN201811481715.8A priority Critical patent/CN111277900B/en
Publication of CN111277900A publication Critical patent/CN111277900A/en
Application granted granted Critical
Publication of CN111277900B publication Critical patent/CN111277900B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations

Abstract

The invention discloses a method and a device for starting a set top box, wherein a task chain queue is obtained, the task chain queue comprises a plurality of task chain tables which are arranged according to an execution priority sequence, and each task chain table comprises at least one task with the same priority; scheduling each task chain table in sequence according to the arrangement sequence of the task chain tables in the task chain queue; acquiring at least one task included in the scheduled task linked list; and concurrently executing the acquired at least one task. By the method and the device, when the set top box schedules and executes the tasks, the tasks can be executed concurrently, the time for starting the set top box is shortened, the user experience is improved, and a better service effect is provided.

Description

Starting method and device of set top box
Technical Field
The invention relates to the field of set top boxes, in particular to a starting method and a starting device of a set top box.
Background
A Set Top Box (STB) needs to load a plurality of service scenarios in a start process, and a plurality of tasks need to be scheduled and executed in each service scenario.
In the prior art, the starting process of the set top box is a serial processing process, and the serial processing process refers to that when the set top box schedules and executes tasks, one task is executed and then the next task is executed.
However, the prior art has the disadvantages that when the set top box schedules and executes tasks, the tasks cannot be executed concurrently, so that the time for starting the set top box is too long, the experience of a user is also deteriorated, and a better service effect cannot be provided.
Disclosure of Invention
Based on the defects of the prior art, the invention provides a method and a device for starting a set top box, so as to accelerate the starting of the set top box, improve the user experience and provide better service effect.
In order to achieve the above object, the following solutions are proposed:
the first aspect of the invention discloses a method for starting a set top box, which comprises the following steps:
acquiring a task chain queue, wherein the task chain queue comprises a plurality of task chain tables which are arranged according to an execution priority sequence, and each task chain table comprises at least one task with the same priority;
scheduling each task chain table in sequence according to the arrangement sequence of the task chain tables in the task chain queue;
acquiring at least one task included in the scheduled task linked list;
and concurrently executing the acquired at least one task.
Optionally, the concurrently executing the acquired at least one task includes:
traversing the association linked list, and respectively determining the execution module corresponding to each acquired task and the execution sequence of the execution module; wherein the association linked list comprises: the scheduling index and the execution sequence of a plurality of execution modules under the same scheduling index are subordinate, and the scheduling index comprises a frequency point index and a task name index;
and according to the execution sequence of the execution modules, parallelly calling and executing the execution module corresponding to each acquired task.
Optionally, the method for generating an association linked list includes:
aiming at each service scene, constructing an execution module corresponding to each task included in the service scene; wherein the service scenario includes: a plurality of service scenes in the starting process of the set top box;
loading configuration item information of the execution module;
configuring the function of the corresponding execution module by using the configuration item information;
establishing an association table of the scheduling index and the execution module with the configured function according to the configuration item information, and taking the association table as the association linked list; the scheduling index and the association table of the execution modules with the configured functions are used for explaining the execution sequence of the execution modules under the same frequency point and explaining the execution sequence of the execution modules under the same task.
Optionally, the generating manner of the task chain queue includes:
determining at least one service included in each service scene;
and classifying the plurality of determined services according to the service sequencing priority, and sequencing the classified classes.
Optionally, the sorting priorities of the services include:
setting tasks, special tasks and core tasks which are irrelevant to the frequency points as task classes of a first execution sequence;
setting tasks of the central frequency point and tasks with frequency locking execution time smaller than a first threshold value as task classes of a second execution sequence;
and setting the tasks with the conflict items and the tasks with the frequency locking execution time larger than a second threshold value as the task class of a third execution sequence.
The second aspect of the present invention discloses a starting apparatus for a set-top box, comprising:
the system comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for obtaining a task chain queue, the task chain queue comprises a plurality of task chain tables which are arranged according to an execution priority sequence, and each task chain table comprises at least one task with the same priority;
the scheduling unit is used for sequentially scheduling each task chain table according to the arrangement sequence of the task chain tables in the task chain queue;
the second acquiring unit is used for acquiring at least one task included in the scheduled task linked list;
and the execution unit is used for executing the acquired at least one task concurrently.
Optionally, the execution unit includes:
the traversal subunit is configured to traverse the association linked list, and determine an execution module corresponding to each acquired task and an execution order of the execution module respectively; wherein the association linked list comprises: the scheduling index and the execution sequence of a plurality of execution modules under the same scheduling index are subordinate, and the scheduling index comprises a frequency point index and a task name index;
and the calling subunit is used for calling and executing the execution module corresponding to each acquired task in parallel according to the execution sequence of the execution modules.
Optionally, the method further comprises:
the system comprises a construction unit and a processing unit, wherein the construction unit is used for constructing an execution module corresponding to each task included in each service scene aiming at each service scene; wherein the service scenario includes: a plurality of service scenes in the starting process of the set top box;
the loading unit is used for loading the configuration item information of the execution module;
the configuration unit is used for configuring the function of the corresponding execution module by using the configuration item information;
the establishing unit is used for establishing an association table of the execution module after the scheduling index and the configuration function according to the configuration item information, and the association table is used as the association linked list; the scheduling index and the association table of the execution modules with the configured functions are used for explaining the execution sequence of the execution modules under the same frequency point and explaining the execution sequence of the execution modules under the same task.
Optionally, the method further comprises:
a determining unit, configured to determine at least one service included in each service scenario;
and the classification unit is used for classifying the plurality of determined services according to the sequencing priority of the services and sequencing the classified classes.
Optionally, the priority of the service includes:
setting tasks, special tasks and core tasks which are irrelevant to the frequency points as task classes of a first execution sequence;
setting tasks of the central frequency point and tasks with frequency locking execution time smaller than a first threshold value as task classes of a second execution sequence;
and setting the tasks with the conflict items and the tasks with the frequency locking execution time larger than a second threshold value as the task class of a third execution sequence.
According to the technical scheme, the starting method and the starting device of the set top box, provided by the invention, have the advantages that by acquiring the task chain queue, the task chain queue comprises a plurality of task chain tables which are arranged according to the execution priority sequence, and each task chain table comprises at least one task with the same priority; scheduling each task chain table in sequence according to the arrangement sequence of the task chain tables in the task chain queue; acquiring at least one task included in the scheduled task linked list; and concurrently executing the acquired at least one task. Therefore, by the method and the device, when the set top box schedules and executes the tasks, the tasks can be executed concurrently, the time for starting the set top box is shortened, the user experience is improved, and a better service effect is provided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a manner of generating an association linked list disclosed in an embodiment of the present invention;
FIG. 2 is a block diagram of an execution module according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a task chain queue generating method according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for starting a set-top box according to an embodiment of the present invention;
FIG. 5 is a diagram of a task chain queue according to an embodiment of the present disclosure;
fig. 6 is a flowchart of another set-top box starting method according to the embodiment of the present invention;
FIG. 7 is a diagram of an associated linked list as disclosed in an embodiment of the present invention;
fig. 8 is a structural diagram of an actuating device of a set-top box according to an embodiment of the present invention;
FIG. 9 is a block diagram of an execution unit according to an embodiment of the present invention;
fig. 10 is a block diagram of another starting device of a set-top box according to an embodiment of the present invention;
fig. 11 is a structural diagram of another starting apparatus of a set-top box according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a starting method and a starting device of a set top box, which are used for accelerating the starting of the set top box, improving the user experience and providing a better service effect.
It should be noted that, before executing the starting method of the set-top box, an association list needs to be constructed. The associated linked list contains scheduling index information of the execution module, and is used for finding out the corresponding execution module to execute the starting process of the set top box.
Optionally, referring to fig. 1, one embodiment of generating the association linked list is:
s101, aiming at each service scene, constructing an execution module corresponding to each task included in the service scene.
Wherein the service scenario includes: and a plurality of service scenes in the starting process of the set top box.
In general, a business scenario may be: monitoring updating of PSISI table, monitoring private table information, monitoring upgrade flow information, filtering OC data flow, obtaining CA authentication information, one or any combination of multi-frequency point and multi-service requirements.
It should be noted that each service scenario includes at least one task, and a task requires at least one execution module to process the task.
And S102, loading the configuration item information of the execution module.
Wherein, the configuration item information may include: configuration information of transmission channels in Digital Video Broadcasting (DVB), for example: frequency points, symbol rate, transmission mode, etc.; information of the tables to be monitored, for example: packet Identification (PID), table Identification (Table Identification, table id), and the like; ordering priority information of the services; service context information or similar service context information.
It should be noted that each execution module includes these types of configuration item information, but the function of each execution module is different, and accordingly, the specific content of these types of configuration item information included in each execution module is also different.
And S103, configuring the function of the corresponding execution module by using the configuration item information.
And analyzing the configuration item information of the execution module, and setting the function of the execution module by using the configuration item information. Specifically, referring to fig. 2, after configuring the functions of the execution module, the execution module generally includes three parts, namely, a chain pointer, the functions of the execution module, and default parameters.
The chain pointer is determined according to configuration information of a transmission channel in DVB in the configuration item information and sequencing priority information of services, and the chain pointer is used for determining the association relation between tasks to be executed through frequency points in the chain pointer and the tasks. The incidence relation between the execution modules means that the execution module and the other execution module have the same frequency point and process the same task.
The functions of the execution module may be create, run, detect, terminate, and complete, etc. Specifically, the service context information or the similar service context information in the configuration item information is determined. For example, to create and run a task, two execution modules may be used for processing, one execution module is created, and the other execution module is run, and the two execution modules have an execution sequence, which is necessarily created first and then run.
The default parameters of the execution module can also be determined by the service scenario information or similar service scenario information in the configuration item information, or can be configured by the information provided by the set-top box.
It should be noted that the established execution modules can be managed and scheduled by an overall controller. The master controller can add or delete execution modules, and can also sequence and schedule tasks.
S104, establishing an association table of the scheduling index and the execution module with the configured function as the association table according to the configuration item information.
The scheduling index and the association table of the execution modules with the configured functions are used for explaining the execution sequence of the execution modules at the same frequency point and explaining the execution sequence of the execution modules at the same task.
The associated linked list connects the scheduling index with the execution module after the function configuration, and the execution module and the execution sequence of the execution module can be found out through the scheduling index. Specifically, the execution modules and the execution sequence thereof at the same frequency point, and the execution modules and the execution sequence thereof under the same task can be found.
The embodiment of the invention aims at each service scene, constructs the execution module corresponding to each task included in the service scene, introduces configuration item information to each execution module, and configures the function of each execution module. Different service scenes are processed through the execution module, the effect of high cohesion and low coupling is achieved, only the logic scheduling and execution module of the execution module needs to be processed, and the maintenance and the expansion of the codes are facilitated.
It should be further noted that after the association linked list is constructed, a task chain queue is also constructed, where the task chain queue includes multiple task linked lists arranged according to the execution priority order.
Each task linked list at least comprises one task, and the tasks are in the same priority level. The tasks included in the task chain table are basically the tasks involved in the set top box starting process. The priority level of the task is used for explaining the execution sequence of the task, and the higher the priority level is, the more the corresponding task needs to be executed.
Optionally, referring to fig. 3, one way of generating the task chain queue includes:
s301, at least one service included in each service scene is determined.
The set-top box needs to start a plurality of service scenarios, each service scenario includes at least one service, and first, the executed service and the execution sequence thereof need to be clarified.
S302, classifying the plurality of determined services according to the sequencing priority of the services, and sequencing the classified classes.
The service sequencing priority comprises the following steps:
setting tasks, special tasks and core tasks which are irrelevant to the frequency points as task classes of a first execution sequence;
setting tasks of the central frequency point and tasks with frequency locking execution time smaller than a first threshold value as task classes of a second execution sequence;
and setting the tasks with the conflict items and the tasks with the frequency locking execution time larger than a second threshold value as the task class of a third execution sequence.
The factors for determining the service sequencing priority order are as follows: whether the frequency point is irrelevant to the frequency point, whether the frequency point is a central frequency point, whether the frequency point is a main frequency point or a standby frequency point, whether the frequency point is a special service or not, and the length of the execution time of frequency locking.
It should be noted that the task class in the first execution order, the task class in the second execution order, and the task class in the third execution order are the execution priority order of the tasks, that is, the multiple task chain tables included in the task chain queue may be classified into the three task classes, and the three task classes have the execution sequence.
It can be known that, the sorting of the classified services means that the sorted services are imported into the task chain queue. In the task chain queue, the master controller can schedule the three types of task classes, that is, can schedule the ordered services.
Because the set-top box only has one demodulator and one demultiplexing, one demodulator can only lock one frequency point at any time, and one demultiplexing has a multipath channel and a multipath filter, tasks irrelevant to the frequency points can be executed concurrently, tasks at the same frequency point can also be executed concurrently, and under the condition of the same frequency point, no conflict item exists among the tasks.
The embodiment of the invention classifies and sequences the services, so that the set top box can be scheduled according to the optimal scheduling strategy in the starting process, thereby meeting the requirements of actual services.
Based on a task chain queue constructed in advance, the method for starting a set top box disclosed by the embodiment of the invention, as shown in fig. 4, includes:
s401, a task chain queue is obtained, wherein the task chain queue comprises a plurality of task chain tables which are arranged according to an execution priority sequence, and each task chain table comprises at least one task with the same priority.
And finishing the classified service and finishing the sequencing of the classified service according to the sequencing priority to obtain three types of task classes which are arranged in sequence. The three types of task classes arranged in sequence are obtained as a task chain queue, and a specific form of the task chain queue is shown in fig. 5.
S402, sequentially scheduling each task linked list according to the arrangement sequence of the task linked lists in the task chain queue.
That is, the first execution order task class, the second execution order task class, and the third execution order task class in the task chain queue are scheduled in sequence. As can be seen from fig. 5, the task classes in the first execution order are scheduled in sequence according to the execution priority order until the task classes in the third execution order are scheduled.
S403, acquiring at least one task included in the scheduled task linked list.
With reference to fig. 5, each task class includes at least one task, at least one task included in the task chain table that is scheduled is obtained, that is, at least one task included in each task class is obtained, and the order of obtaining the tasks is obtained according to the order of the execution priority, that is, at least one task included in the task classes from the task class in the first execution order to the task class in the third execution order is obtained in sequence.
S404, the acquired at least one task is executed concurrently.
The tasks included in the same task class are the tasks with the same priority, and the tasks with the same priority can be executed concurrently. That is, all tasks included in the same task class can be concurrently executed, and all tasks included in the three classes of task classes can be executed in order of execution priority. With reference to fig. 5, the tasks included in the same task class are the tasks with the same priority, and may be all the tasks included in the task class in the first execution order are the tasks with the same priority, and all the tasks in the task class are executed concurrently. Similarly, all tasks included in the task class in the second execution order are executed concurrently, and all tasks included in the task class in the third execution order are executed concurrently.
In addition, the embodiment of the invention can also check whether the task is executed, and if the task to be executed is not executed, the task is executed. The embodiment of the invention can also mark whether the execution time of the executed task is overtime.
According to the embodiment of the invention, at least one acquired task is executed concurrently, and when the set top box schedules and executes the task, the task can be executed concurrently, so that the time for starting the set top box is shortened, the user experience is improved, and a better service effect is provided.
Optionally, in another embodiment of the present invention, a specific implementation manner of S404, referring to fig. 6, includes:
s601, traversing the association linked list, and respectively determining an execution module corresponding to each acquired task and an execution sequence of the execution module; wherein the association linked list comprises: the scheduling index comprises a frequency point index and a task name index, and the scheduling index comprises an execution sequence of a plurality of execution modules under the same scheduling index.
Referring to fig. 7, F1, F2, and F3 in fig. 7 are different frequency point indexes, and S1, S2, and S3 are different task name indexes. If F1 is the frequency point of the first execution module, and the second and third execution modules with the same frequency point as the first execution module can be found. If S1 is the task name index of the second execution module, the second execution module and a third execution module with the same task name as the second execution module can be found. Meanwhile, the execution sequence of the first execution module, the second execution module and the third execution module can be determined.
And S602, according to the execution sequence of the execution modules, parallelly calling and executing the execution module corresponding to each acquired task.
Each task has a corresponding execution module, the execution order of the execution module and the execution module has been determined in S601, and the execution module under each task is called and executed in parallel according to the execution order of the execution module.
Referring to fig. 8, another embodiment of the present invention discloses a starting apparatus for a set-top box, which specifically includes: a first acquisition unit 801, a scheduling unit 802, a second acquisition unit 803, and an execution unit 804.
A first obtaining unit 801, configured to obtain a task chain queue, where the task chain queue includes multiple task chain tables arranged according to an execution priority order, and each task chain table includes at least one task with the same priority.
And finishing the classified services, finishing the sequencing of the classified services according to the sequencing priority, and obtaining three types of task classes arranged in sequence. The three types of task classes arranged in sequence are obtained as a task chain queue, and a specific form of the task chain queue is shown in fig. 5.
And the scheduling unit 802 is configured to sequentially schedule each task linked list according to the arrangement order of the task linked lists in the task chain queue.
That is, the task class in the first execution order, the task class in the second execution order, and the task class in the third execution order in the task chain queue are sequentially scheduled. As can be seen from fig. 5, the task classes in the first execution order are scheduled in sequence according to the execution priority order until the task classes in the third execution order are scheduled.
A second obtaining unit 803, configured to obtain at least one task included in the scheduled task list.
With reference to fig. 5, each task class includes at least one task, the at least one task included in the task chain table that is scheduled is obtained, that is, at least one task included in each task class is obtained, and the order of obtaining the tasks is obtained according to the order of the execution priority, that is, at least one task included from the task class in the first execution order to the task class in the third execution order is obtained in sequence.
An executing unit 804, configured to concurrently execute the obtained at least one task.
The tasks included in the same task class are the tasks with the same priority, and the tasks with the same priority can be executed concurrently. That is, all tasks included in the same task class can be concurrently executed, and all tasks included in the three classes of task classes can be executed in order of execution priority. Referring to fig. 5, the tasks included in the same task class are equal priority tasks, and may be that all the tasks included in the first execution order task class are equal priority tasks, and all the tasks in the task class are executed concurrently. Similarly, all tasks included in the task class in the second execution order are executed concurrently, and all tasks included in the task class in the third execution order are executed concurrently.
In addition, the embodiment of the invention can also check whether the task is executed, and if the task to be executed is not executed, the task is executed. The embodiment of the invention can also mark whether the execution time of the executed task is overtime.
According to the embodiment of the invention, at least one acquired task is executed concurrently, and when the set top box schedules and executes the task, the task can be executed concurrently, so that the time for starting the set top box is shortened, the user experience is improved, and a better service effect is provided.
Optionally, an embodiment of the execution unit 804, referring to fig. 9, includes:
a traversal subunit 901, configured to traverse the association linked list, and determine an execution module corresponding to each acquired task and an execution order of the execution module respectively; wherein the association linked list comprises: the scheduling index comprises a frequency point index and a task name index, and the scheduling index comprises an execution sequence of a plurality of execution modules under the same scheduling index.
And the calling subunit 902 is configured to parallelly call and execute the execution module corresponding to each acquired task according to the execution sequence of the execution modules.
For the specific working processes of the two units in this embodiment, reference may be made to the content of the embodiment corresponding to fig. 6, which is not described herein again.
Optionally, in another embodiment of the present invention, the starting apparatus of the set-top box further includes:
a determining unit 1001, configured to determine at least one service included in each service scenario.
A classifying unit 1002, configured to classify the determined multiple services according to the service sequencing priorities, and sequence the classified classes.
For the specific working processes of the two units in this embodiment, reference may be made to the content of the embodiment corresponding to fig. 3, which is not described herein again.
Optionally, in another embodiment of the present invention, the starting apparatus of the set top box may further construct an association linked list, specifically, as shown in fig. 11, the method includes:
a constructing unit 1101, configured to construct, for each service scenario, an execution module corresponding to each task included in the service scenario; wherein the service scenario includes: and a plurality of service scenes in the starting process of the set top box.
A loading unit 1102, configured to load configuration item information of the execution module.
A configuration unit 1103, configured to configure the function of the corresponding execution module by using the configuration item information.
An establishing unit 1104, configured to establish, according to the configuration item information, an association table of the execution module after the scheduling index and the configuration function as the association linked list; the scheduling index and the association table of the execution modules with the configured functions are used for explaining the execution sequence of the execution modules under the same frequency point and explaining the execution sequence of the execution modules under the same task.
In this embodiment, the specific working process of each unit may refer to the content of the embodiment corresponding to fig. 1, and is not described herein again.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, the system or system embodiments, which are substantially similar to the method embodiments, are described in a relatively simple manner, and reference may be made to some descriptions of the method embodiments for relevant points. The above-described apparatuses and apparatus embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (6)

1. A method for starting a set top box is characterized by comprising the following steps:
acquiring a task chain queue, wherein the task chain queue comprises a plurality of task chain tables which are arranged according to an execution priority sequence, and each task chain table comprises at least one task with the same priority;
scheduling each task chain table in sequence according to the arrangement sequence of the task chain tables in the task chain queue;
acquiring at least one task included in the scheduled task linked list;
concurrently executing the acquired at least one task;
the concurrently executing the acquired at least one task includes:
traversing the associated linked list, and respectively determining the execution module corresponding to each acquired task and the execution sequence of the execution module; wherein the association linked list comprises: the scheduling index and the execution sequence of a plurality of execution modules under the same scheduling index are subordinate, and the scheduling index comprises a frequency point index and a task name index;
according to the execution sequence of the execution modules, parallelly calling and executing the execution module corresponding to each acquired task;
the method for generating the association linked list comprises the following steps:
aiming at each service scene, constructing an execution module corresponding to each task included in the service scene; wherein the service scenario includes: a plurality of service scenes in the starting process of the set top box;
loading configuration item information of the execution module;
configuring the function of the corresponding execution module by using the configuration item information;
establishing an association table of the scheduling index and the execution module with the configured function according to the configuration item information, and taking the association table as the association linked list; the scheduling index and the association table of the execution modules with the configured functions are used for explaining the execution sequence of the execution modules under the same frequency point and explaining the execution sequence of the execution modules under the same task.
2. The method of claim 1, wherein the task chain queue is generated in a manner that comprises:
determining at least one service included in each service scene;
and classifying the plurality of determined services according to the sequencing priority of the services, and sequencing the classified classes.
3. The method of claim 2, wherein the prioritization of the traffic comprises:
setting tasks, special tasks and core tasks which are irrelevant to the frequency points as task classes of a first execution sequence;
setting tasks of the central frequency point and tasks with frequency locking execution time smaller than a first threshold value as task classes of a second execution sequence;
and setting the tasks with the conflict items and the tasks with the frequency locking execution time larger than a second threshold value as the task class of a third execution sequence.
4. An apparatus for starting a set-top box, comprising:
the system comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for obtaining a task chain queue, the task chain queue comprises a plurality of task chain tables which are arranged according to an execution priority sequence, and each task chain table comprises at least one task with the same priority;
the scheduling unit is used for sequentially scheduling each task chain table according to the arrangement sequence of the task chain tables in the task chain queue;
the second obtaining unit is used for obtaining at least one task included in the scheduled task linked list;
the execution unit is used for concurrently executing the acquired at least one task;
the execution unit includes:
the traversal subunit is used for traversing the association linked list and respectively determining the execution module corresponding to each acquired task and the execution sequence of the execution module; wherein the association linked list comprises: the scheduling index comprises a frequency point index and a task name index;
the calling subunit is used for parallelly calling and executing the execution module corresponding to each acquired task according to the execution sequence of the execution modules;
the construction unit is used for constructing an execution module corresponding to each task included in each service scene; wherein the service scenario includes: a plurality of service scenes in the starting process of the set top box;
the loading unit is used for loading the configuration item information of the execution module;
the configuration unit is used for configuring the function of the corresponding execution module by using the configuration item information;
the establishing unit is used for establishing an association table of the execution module with the scheduling index and the configuration function as the association linked list according to the configuration item information; the scheduling index and the association table of the execution modules with the configured functions are used for explaining the execution sequence of the execution modules at the same frequency point and explaining the execution sequence of the execution modules at the same task.
5. The apparatus of claim 4, further comprising:
the determining unit is used for determining at least one service included in each service scene;
and the classification unit is used for classifying the plurality of determined services according to the sequencing priority of the services and sequencing the classified classes.
6. The apparatus of claim 5, wherein the priority of the service comprises:
setting tasks, special tasks and core tasks which are irrelevant to the frequency points as task classes of a first execution sequence;
setting tasks of the central frequency point and tasks with frequency locking execution time smaller than a first threshold value as task classes of a second execution sequence;
and setting the tasks with the conflict items and the tasks with the frequency locking execution time larger than a second threshold value as the task class of a third execution sequence.
CN201811481715.8A 2018-12-05 2018-12-05 Starting method and device of set top box Active CN111277900B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811481715.8A CN111277900B (en) 2018-12-05 2018-12-05 Starting method and device of set top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811481715.8A CN111277900B (en) 2018-12-05 2018-12-05 Starting method and device of set top box

Publications (2)

Publication Number Publication Date
CN111277900A CN111277900A (en) 2020-06-12
CN111277900B true CN111277900B (en) 2022-12-23

Family

ID=71001385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811481715.8A Active CN111277900B (en) 2018-12-05 2018-12-05 Starting method and device of set top box

Country Status (1)

Country Link
CN (1) CN111277900B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010130193A1 (en) * 2009-05-13 2010-11-18 中兴通讯股份有限公司 Device, method for controlling audio media packet transmission and audio media server
WO2012094862A1 (en) * 2011-01-10 2012-07-19 中兴通讯股份有限公司 Method, apparatus and computer for task scheduling in operating system
WO2013140412A1 (en) * 2012-03-23 2013-09-26 Infosys Limited A method and system for distributed computing of jobs
CN104331421A (en) * 2014-10-14 2015-02-04 安徽四创电子股份有限公司 High-efficiency processing method and system for big data
CN105204837A (en) * 2014-06-27 2015-12-30 南京南瑞继保电气有限公司 Realizing method and device for logic programming

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902487B (en) * 2009-05-26 2013-03-20 中兴通讯股份有限公司 Queue scheduling method and device based on linked list
CN102752136A (en) * 2012-06-29 2012-10-24 广东东研网络科技有限公司 Method for operating and scheduling communication equipment
CN104965686B (en) * 2015-07-20 2019-01-22 北京金山安全软件有限公司 Priority queue design method and priority queue design device
CN106201695A (en) * 2016-07-15 2016-12-07 郑州飞机装备有限责任公司 It is applicable to the multi-task scheduling method of embedded software system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010130193A1 (en) * 2009-05-13 2010-11-18 中兴通讯股份有限公司 Device, method for controlling audio media packet transmission and audio media server
WO2012094862A1 (en) * 2011-01-10 2012-07-19 中兴通讯股份有限公司 Method, apparatus and computer for task scheduling in operating system
WO2013140412A1 (en) * 2012-03-23 2013-09-26 Infosys Limited A method and system for distributed computing of jobs
CN105204837A (en) * 2014-06-27 2015-12-30 南京南瑞继保电气有限公司 Realizing method and device for logic programming
CN104331421A (en) * 2014-10-14 2015-02-04 安徽四创电子股份有限公司 High-efficiency processing method and system for big data

Also Published As

Publication number Publication date
CN111277900A (en) 2020-06-12

Similar Documents

Publication Publication Date Title
CN110392445B (en) Method, device and system for equipment distribution network
CN110213369B (en) Automatic arranging system and arranging method for service function chain
CN111865736B (en) Equipment control method and device
CN109936486B (en) Automatic dial testing method, device, equipment and storage medium based on block chain
CN111372253B (en) Cell access method, device, system and computer readable storage medium
US8902903B2 (en) Assigning slots in a mesh network
CN103888619A (en) Message processing method and system thereof
CN102984578A (en) Method, video terminal and system for processing program channel list information
CN109040178A (en) Configuration information transmitting method and device
CN103607598A (en) Method and device for automatically recognizing network operator to realize data configuration
CN111614527B (en) Method and device for on-line of HINOC terminal, storage medium and terminal
CN102811338A (en) Control method and control device for multi-level postback video signal in video conference system
CN111277900B (en) Starting method and device of set top box
CN108243110B (en) Resource adjusting method, device and system
EP3110067A1 (en) Network system, management apparatus, communication apparatus, management method, and communication method
CN111818611B (en) Equipment binding method and device
CN109040832A (en) Channel scan method, smart television and computer readable storage medium
CN104918256A (en) Transmission scheduling method and device
CN106603722B (en) Management equipment determining method and device
CN112751685B (en) Method, device and system for configuring user plane capacity of network slice
WO2017185908A1 (en) Resource scheduling method and device, and data storage medium
CN104717368B (en) Data on flows update method, data on flows more new system and terminal
CN109583614A (en) A kind of meeting room booking method and device
JP5133419B2 (en) Distribution system, distribution apparatus, terminal apparatus and method for distributing common control signal
CN115878341A (en) Message subscription method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant