CN104346219A - Method and equipment for system scheduling - Google Patents

Method and equipment for system scheduling Download PDF

Info

Publication number
CN104346219A
CN104346219A CN201410653254.3A CN201410653254A CN104346219A CN 104346219 A CN104346219 A CN 104346219A CN 201410653254 A CN201410653254 A CN 201410653254A CN 104346219 A CN104346219 A CN 104346219A
Authority
CN
China
Prior art keywords
equipment
middle layer
task
control message
bottom submodule
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.)
Granted
Application number
CN201410653254.3A
Other languages
Chinese (zh)
Other versions
CN104346219B (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.)
Comba Network Systems Co Ltd
Original Assignee
Comba Telecom Systems China Ltd
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 Comba Telecom Systems China Ltd filed Critical Comba Telecom Systems China Ltd
Priority to CN201410653254.3A priority Critical patent/CN104346219B/en
Publication of CN104346219A publication Critical patent/CN104346219A/en
Application granted granted Critical
Publication of CN104346219B publication Critical patent/CN104346219B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention provides a method and equipment for system scheduling, which are applied to a communication software architecture and are used for solving the problem that due to adoption of a serial software architecture mode of existing communication software, all tasks are dependent on each other, change of one variable can possibly cause instability of the integral system and the maintenance work of the system is difficult to carry out. The method for system scheduling, which is provided by the embodiment of the invention, comprises the following steps that after a top layer of the equipment receives a control command input by a user, the received control command is preprocessed to obtain a control message and the control message is transmitted to a middle layer of the equipment; the middle layer of the equipment generates at least one working task according to the received control message and the working task is transmitted to at least one corresponding bottom layer submodule of the equipment, wherein each type of working tasks corresponds to one different bottom layer submodule; the bottom layer submodule carries out processing according to the received working task sent by the middle layer.

Description

A kind of method and apparatus of system call
Technical field
The present invention relates to communication class software architecture technical field, particularly relate to a kind of method and apparatus of system call.
Background technology
Along with the development of communication products and constantly widening of application, types of applications scene is also increasing to the requirement of communication class software.In order to meet many application scenarioss, the day by day complicated variation of design of communication class software.At present, communication class software adopts the mode of serialized software framework usually, and along with software increase function get more and more, a lot of staggered function may be there is in serialized software framework mode, just another one function may be affected when opening one of them function, thus the mode of this serialized software framework is more and more difficult to bear hard work task day by day, relation of interdependence simultaneously between each task also makes whole system framework more intricate, this complicated system makes maintenance work more be difficult to carry out, the change of a variable just likely can cause the instability of whole system, and be difficult to be found.
In sum, current communication class software adopts the mode of serialized software framework, interdepends between each task, and the change of a variable just likely can cause the instability of whole system, and the maintenance work of system is difficult to carry out.
Summary of the invention
The embodiment of the present invention provides a kind of method of system call, be applied in communication class software architecture, in order to solve the mode of existing communication class software architecture, interdepend between each task, the change of a variable just likely can cause the instability of whole system, and the maintenance work of system is difficult to the problem of carrying out.
Based on the problems referred to above, the method for a kind of system call that the embodiment of the present invention provides, comprising:
The top layer of equipment carries out pre-service to the described steering order received and obtains control message, described control message is handed down to the middle layer of equipment after receiving the steering order of user's input;
The middle layer of described equipment generates at least one task according to the described control message received, and described task is handed down at least one bottom submodule of corresponding described equipment, the bottom submodule that wherein the task correspondence one of every type is different;
Described bottom submodule processes according to the task receiving the transmission of described middle layer.
Method due to system call provided by the invention equipment be divide into top layer, middle layer and bottom three levels, wherein, top layer is only responsible for the work of user oriented and data, middle layer then takes charge of the explanation order and generation task, separate between each bottom submodule, do not rely on mutually, by middle layer United Dispatching, having well defined power and responsibility between three levels, Each performs its own functions, compared with adopting the mode of serialized software framework with prior art communication class software like this, improve the stability of system, and reduce the difficulty of software maintenance work.
Preferably, the described steering order received is carried out pre-service and is obtained control message by the top layer of described equipment, comprising:
The described steering order received encapsulates in cell mode by the top layer of described equipment, obtains control message;
The middle layer of described equipment generates at least one task according to the described control message received, and comprising:
Decapsulation is carried out to the described control message received in the middle layer of described equipment, obtains steering order, and generates at least one task according to described steering order.
Preferably, the top layer of described equipment also comprises after receiving the steering order of user's input:
The top layer of described equipment, according to the parameter information mutual with database, forms configuration file, and described configuration file and described control message is handed down in the lump the middle layer of equipment;
Decapsulation is carried out to the described control message received in the middle layer of described equipment, obtains steering order, comprising:
The middle layer of described equipment carries out decapsulation according to the described configuration file received to the described control message received, and obtains steering order.
Preferably, the middle layer of described equipment also comprises before generating at least one task according to described steering order:
The steering order that the middle layer of described equipment can obtain according to decapsulation, when time when carrying out task to described bottom submodule and described bottom submodule carry out task, system resource used is dispatched.
Preferably, described bottom submodule processes according to the task receiving the transmission of described middle layer, also comprises:
Described bottom submodule carries out in the process processed according to receiving the task that described middle layer sends, and the middle layer to described equipment reports self status information;
The method also comprises:
The duty of described bottom submodule is monitored in the middle layer of described equipment according to the described status information received;
Described equipment is defining the described bottom submodule of abnormality, and after the described bottom submodule of abnormality cannot recover voluntarily, carries out recovery operation to the described bottom submodule of abnormality.
Preferably, the middle layer of described equipment, after following situations occurs, determine the described bottom submodule that there is abnormality, and the described bottom submodule of abnormality cannot recover voluntarily:
The status information that the described bottom submodule that the middle layer of described equipment does not receive task of dealing with the work in setting duration reports.
Because each bottom submodule can maintain the stable of self, repair the exception of self, simultaneously the duty of each bottom submodule can be monitored in middle layer, carry out recovery operation to the abnormal bottom submodule that cannot recover voluntarily, thus the sound assurance stability of whole software systems.
The equipment of a kind of system call that the embodiment of the present invention provides, is applied in communication class software, comprises:
Top-level module, for receive user input steering order after, pre-service is carried out to the described steering order received and obtains control message, described control message is handed down to the middle layer module of equipment;
Middle layer module, for generating at least one task according to the described control message received, and described task is handed down at least one bottom submodule of corresponding described equipment, the bottom submodule that wherein the task correspondence one of every type is different;
Bottom submodule, for processing according to the task receiving the transmission of described middle layer module.
Preferably, described top-level module specifically for:
When the described steering order received being carried out pre-service and obtaining control message, the described steering order received is encapsulated in cell mode, obtains control message;
Described middle layer module specifically for:
Decapsulation is carried out to the described control message received, obtains steering order, and generate at least one task according to described steering order.
Preferably, described top-level module also for:
After the steering order receiving user's input, according to the parameter information mutual with database, form configuration file, and described configuration file and described control message are handed down in the lump the middle layer module of equipment;
Described middle layer module specifically for:
According to the described configuration file received, decapsulation is carried out to the described control message received, obtain steering order.
Preferably, described middle layer module also for:
Carry out decapsulation to the described control message received, after obtaining steering order, the steering order that can obtain according to decapsulation, when time when carrying out task to described bottom submodule and described bottom submodule carry out task, system resource used is dispatched.
Preferably, described bottom submodule also for:
According to receive task that described middle layer module sends process time, carry out in the process processed according to receiving the task that described middle layer module sends, the middle layer module to described equipment reports self status information;
Described middle layer module also for:
The duty of described bottom submodule is monitored according to the described status information received; Defining the described bottom submodule of abnormality, and after the described bottom submodule of abnormality cannot recover voluntarily, recovery operation is being carried out to the described bottom submodule of abnormality.
Preferably, described middle layer module also for, following situations occur after, determine the described bottom submodule that there is abnormality, and the described bottom submodule of abnormality cannot recover voluntarily:
The status information that the described bottom submodule not receiving task of dealing with the work in setting duration reports.
Accompanying drawing explanation
The three-decker schematic diagram of the method for the system call that Fig. 1 provides for the embodiment of the present invention;
The process flow diagram of the method for the system call that Fig. 2 provides for the embodiment of the present invention;
The top layer workflow diagram of the equipment that Fig. 3 provides for the embodiment of the present invention;
The middle layer workflow diagram of the equipment that Fig. 4 provides for the embodiment of the present invention;
The bottom workflow diagram of the equipment that Fig. 5 provides for the embodiment of the present invention;
The method concrete implementing procedure figure in a device of the system call that Fig. 6 provides for the embodiment of the present invention;
The structural representation of the equipment of the system call that Fig. 7 provides for the embodiment of the present invention.
Embodiment
After the top layer of equipment receives the steering order of user's input in the embodiment of the present invention, pre-service is carried out to the steering order received and obtains control message, control message is handed down to the middle layer of equipment; The middle layer of equipment generates at least one task according to the control message received, and task is handed down at least one bottom submodule of corresponding equipment, the bottom submodule that wherein the task correspondence one of every type is different; Bottom submodule processes according to the task receiving middle layer transmission.Method due to system call provided by the invention equipment be divide into top layer, middle layer and bottom three levels, wherein, top layer is only responsible for the work of user oriented and data, middle layer then takes charge of the explanation order and generation task, separate between each bottom submodule, does not rely on mutually, by middle layer United Dispatching, having well defined power and responsibility between three levels, Each performs its own functions, improves the stability of system, and reduce the difficulty of software maintenance work.
Below in conjunction with Figure of description, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.And when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
The system scheduling method that the embodiment of the present invention provides, based on the theory of multi-process distributed management, adopts three layers of hierarchy to realize, as shown in Figure 1, and the three-decker schematic diagram of the method for the system call provided for the embodiment of the present invention.The top layer of equipment is responsible for receiving the steering order of user's input and is carried out pre-service and obtain control message, and top layer and database form configuration file alternately simultaneously, and configuration file and control message are handed down to the middle layer of equipment in the lump; The control message that the middle layer of equipment issues according to top layer and configuration file generate task, and the task of generation are distributed to corresponding bottom submodule; The bottom submodule of equipment receives and completes the task of middle layer distribution.Wherein, the bottom of equipment is made up of the bottom submodule of multiple Various Functions, and there is not communication mechanism between all bottom submodules, works independently of one another.In actual production manufacture process, each bottom submodule correspondence at least one hardware of management or software resource, bottom submodule can select corresponding hardware resource to process according to the task that will carry out processing.
Such as INNIS manages each network interface; Routing module managing I P layer resource; Radio configuration module management radiolink resource allocation etc.
Below in conjunction with accompanying drawing, with specific embodiment, method and apparatus provided by the invention is described in detail.
The method of a kind of system call that the embodiment of the present invention provides, as shown in Figure 2, specifically comprises the following steps:
The top layer of S201, equipment carries out pre-service to the steering order received and obtains control message, control message is handed down to the middle layer of equipment after receiving the steering order of user's input;
The middle layer of S202, equipment generates at least one task according to the control message received, and task is handed down at least one bottom submodule of corresponding equipment, the bottom submodule that wherein the task correspondence one of every type is different;
S203, bottom submodule process according to the task receiving middle layer transmission.
In the embodiment of the present invention, equipment be divide into top layer, middle layer and bottom three levels, wherein, top layer is only responsible for the work of user oriented and data, middle layer then takes charge of the explanation order and generation task, separate between each bottom submodule, does not rely on mutually, by middle layer United Dispatching, having well defined power and responsibility between three levels, Each performs its own functions, improves the stability of system, and reduce the difficulty of software maintenance work.
The method of the system call of the embodiment of the present invention is applied in communication class software architecture, and wherein communication class software architecture can be the software architecture etc. in the software architecture in WLAN software architecture, embedded control system, the framework in base station system software, 3G/4G system.
Equipment in the embodiment of the present invention can be wireless router, wireless exchange board, wireless base station, 3G/4G base station etc.
Concrete, the steering order received is carried out pre-service and is obtained control message by the top layer of equipment, comprising:
The steering order received encapsulates in cell mode by the top layer of equipment, obtains control message;
The middle layer of equipment generates at least one task according to the control message received, and comprising:
Decapsulation is carried out to the control message received in the middle layer of equipment, obtains steering order, and generates at least one task according to steering order.
Preferably, the top layer of equipment also comprises after receiving the steering order of user's input:
The top layer of equipment, according to the parameter information mutual with database, forms configuration file, and configuration file and control message is handed down in the lump the middle layer of equipment;
Decapsulation is carried out to the control message received in the middle layer of equipment, obtains steering order, comprising:
The middle layer of equipment carries out decapsulation according to the configuration file received to the control message received, and obtains steering order.
In force, the steering order received, after the steering order received, encapsulates with the data mode of arranging with middle layer, obtains control message by the top layer of equipment; After the control message is received, the data mode according to arranging with top layer carries out decapsulation to the control message received, and obtains steering order in the middle layer of equipment.
In force, Internal system parameters information when the top layer of equipment comprises the parameter information that can be shown to user according to the parameter information mutual with database and operates system, the top layer of equipment forms configuration file according to the parameter information mutual with database, and configuration file and control message are handed down in the lump the middle layer of equipment, wherein configuration file is the text generated with specific coded format that top layer and middle layer are appointed, the middle layer of equipment is according to the coded format identification configuration file of arranging with top layer, and according to configuration file, decapsulation is carried out to the control message received, obtain steering order, at least one task is generated according to the steering order obtained.Such as, the specific coding form that configuration file adopts can be the coded format with a certain specific prefix that top layer and middle layer are appointed.
Preferably, as shown in Figure 3, be the top layer workflow diagram of the equipment that the embodiment of the present invention provides, specifically comprise the following steps:
The top layer of step 301, equipment adopts user oriented mode to realize, and after the steering order receiving user's input, performs step 302 and/or step 303;
The top layer of step 302, equipment carries out pre-service to the steering order received, and the steering order being about to receive encapsulates in cell mode, obtains control message, and performs step 304;
The top layer of step 303, equipment, after instruction being carried out to pre-service and completing, by the mode of memory read-write to database interaction parameter information, then forms configuration file according to the parameter information mutual with database, and performs step 304;
The top layer of step 304, equipment issues configuration file and control message by message queue mechanism in the lump to middle layer.
In force, step 302 and step 303 can perform simultaneously, also can perform respectively, after namely step 301 executes, can perform step 302 and step 303 simultaneously, also can perform step 302 and step 303 respectively, and order in no particular order.
In force, the top layer of equipment adopts user oriented mode to realize, that is equipment can show the interface that user controls equipment, such as user can select equipment to realize the function of router, after user has selected, then equipment just can carry out the operation of being correlated with according to the selection of user.
In force, the system scheduling method that the embodiment of the present invention provides has the double-deck function recovered voluntarily, can the stability of the whole software systems of sound assurance, lower mask body introduction.
Concrete, bottom submodule processes according to the task receiving middle layer transmission, also comprises:
Bottom submodule carries out in the process processed according to receiving the task that middle layer sends, and the middle layer to equipment reports self status information;
The method also comprises:
The middle layer of equipment is according to the duty of the status information monitoring bottom submodule received;
Equipment is defining the bottom submodule of abnormality, and after the bottom submodule of abnormality cannot recover voluntarily, carries out recovery operation to the bottom submodule of abnormality.
In force, the corresponding different bottom submodule of the task of every type that the middle layer of equipment generates, this task, after generation task, to be issued the bottom submodule for completing the type task according to the type of task by middle layer.The task type that the middle layer received due to different bottom submodules sends is not identical, so the mode processed the task received is not identical yet.Such as, the task that bottom submodule receives is configured port, then bottom submodule can configure corresponding port accordingly according to the content of task; If the task that bottom submodule receives opens third party software, then bottom submodule can open corresponding third party software according to the content of task.
In force, bottom submodule may need when finishing the work task to start some corresponding parts, port etc. required when such as carrying out task process.When bottom submodule regularly reports the status information of self to the middle layer of equipment, the status information reported comprises the information of all parts of startup, and these information may be the information the such as whether duty of all parts is normal.
Such as, whether bottom submodule can reports the duty of certain Single port started during its work normal by this specific data message to middle layer, if this duty occurs abnormal, then bottom submodule is when reporting oneself state information to middle layer, and this port working can be reported abnormal; If bottom submodule makes the port of this exception resume work by restore funcitons voluntarily, then bottom submodule is when reporting oneself state information next time to middle layer, and this port working state can be reported to be normal.
Preferably, the middle layer of equipment, after following situations occurs, determine the bottom submodule that there is abnormality, and the bottom submodule of abnormality cannot recover voluntarily:
The status information that the bottom submodule that the middle layer of equipment does not receive task of dealing with the work in setting duration reports.
Such as, suppose that bottom submodule carries out in the process processed according to the task receiving middle layer transmission, bottom submodule just reported once oneself duty to middle layer by message queue mode every 3 seconds, if wherein the bottom submodule of certain task of dealing with the work is not more than 3 seconds to middle layer uploaded state, then middle layer will think that this bottom submodule is that duty is abnormal.
In force, each bottom submodule in equipment bottom, the task that middle layer issues is received by the mode of message queue, realize a certain independently function, the underlying resource organizing oneself to administer completes received task, meanwhile, the parallel running of multiple bottom submodule, collaborative work.After the bottom submodule task that interbed issues in the reception, start the life cycle of oneself, in life cycle, complete the task that middle layer issues, after life cycle terminates, bottom submodule can automatic power cut-off process, release internal resource.
In force, bottom submodule is during carrying out task, middle layer can according to the duty of the status information monitoring bottom submodule received, and record bottom submodule and to finish the work the progress of task, but bottom submodule may cause himself duty abnormal because of some reasons, such as, a bottom submodule needs when carrying out task process to use certain port, but now this port cannot normally work, and then the duty of the bottom submodule of this work may be caused abnormal.During carrying out task, each bottom submodule can both use the operation of single-threaded monitoring self, thus maintain the stability of self, the state of bottom submodule can be monitored in middle layer simultaneously, to abnormal and the submodule that can not recover voluntarily carries out abnormality processing and recovering state, the stability of the double-deck framework form recovered voluntarily more whole software systems of powerful guarantee.
In force, abnormal bottom submodule can recover its duty voluntarily by the mode such as restarting; If the bottom submodule of exception is state because the reason such as locked cannot be resumed work voluntarily, then middle layer can help the bottom submodule of this exception to carry out recovering state, such as, abnormal bottom submodule power cut-off process can be forced in middle layer, and make it reopen process, after the bottom submodule of exception is forced to reopen process by middle layer, the job schedule before process can be reopened continue its task do not completed according to its of middle layer record.
Preferably, decapsulation is carried out to the control message received in the middle layer of equipment, after obtaining steering order, also comprises:
The steering order that the middle layer of equipment can obtain according to decapsulation, when time when carrying out task to bottom submodule and bottom submodule carry out task, system resource used is dispatched.
In force, the scheduling of middle layer to bottom submodule of equipment comprises, and the system resource used to time during bottom submodule task is dispatched.The middle layer of equipment can be dispatched bottom submodule by schedule information.Schedule information comprises time scheduling information and system resource schedule information.
Schedule information can send to bottom submodule together with task, also can be placed in task and send to bottom submodule.
Receive the bottom submodule after schedule information and determine the corresponding time according to the time scheduling information in schedule information, and determine corresponding system resource according to the system resource schedule information in schedule information, and the system resource Processing tasks by determining after the time determined arrives.
In order to ensure the duty in the life cycle of each bottom submodule when carrying out task process and stability, the middle layer of equipment is carried out in the process of decapsulation to the control message that top layer issues, consider the situation of multiple bottom submodule coupling, namely the order that top layer issues may relate to multiple bottom submodule, needs to initiate successively different bottom submodule the situation of a certain task as there is different time; And for example may there is the situation that synchronization needs the collaborative work of multiple bottom submodule.When middle layer makes an explanation to order, according to the job start time of order to each bottom submodule of demand planning in each bottom submodule sequential, ensure the dependence of each independent bottom straton intermodule.
Such as, suppose that equipment only has an available network interface, if there are two bottom submodules all to need to use this network interface in bottom, then the middle layer of equipment is when producing task, can determine the sequencing of two these network interfaces of bottom submodule according to control message; Suppose have two tasks will complete something simultaneously, then the middle layer of equipment is when producing task, meeting has told the bottom submodule corresponding to these two tasks according to control message, and the order that these two tasks start starts successively, still starts simultaneously.
In force, preferably, after in the embodiment of the present invention, the top layer of equipment issues configuration file and control message, the control message that top layer issues is responsible for receiving, explaining in the middle layer of equipment, multiple subtask is generated according to the dependence between each bottom submodule, be handed down to the bottom submodule of each Various Functions, lower mask body introduction.
As shown in Figure 4, be the middle layer workflow diagram of the equipment that the embodiment of the present invention provides, specifically comprise the following steps:
The middle layer of step 401, equipment received by message queue that top layer issues send out configuration file and control message after, perform step 402;
The control message of the cell form received is carried out deblocking according to the configuration file received by the middle layer of step 402, equipment, obtain the steering order that solution is honored as a queen, tell that the top layer configuration file of equipment and control message receive by response cell, and perform step 403;
The middle layer of step 403, equipment generates at least one task according to the steering order that deblocking obtains;
At least one task that the middle layer of step 404, equipment will generate, uses message queue mechanism to be distributed to corresponding bottom submodule.
As shown in Figure 5, be the bottom workflow diagram of the equipment that the embodiment of the present invention provides, specifically comprise the following steps:
Step 501, bottom submodule receive the task that middle layer issues;
Step 502, bottom submodule perform the task that the middle layer that receives issues, and perform step 503 and 504 simultaneously;
Step 503, bottom submodule, within the cycle of carrying out task, can keep, from calm, safeguarding the stability of self, namely pass through the operation using individual threads monitoring self, self occur abnormal, then repair self extremely, perform step 502 if find;
Step 504, bottom submodule complete the task that middle layer issues.
Preferably, when the method for the system call that the embodiment of the present invention provides specifically is implemented in a device, high-level can control low-level, low-level instead can not cross control high-level, low-level can only to high-level reporting message, such as middle layer can control bottom, and bottom can not control middle layer, can only report the duty of self to middle layer.As shown in Figure 6, the method concrete implementing procedure figure in a device of the system call provided for the embodiment of the present invention.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of equipment of system call, the principle of dealing with problems due to this equipment is similar to the method that aforementioned system is dispatched, and therefore the enforcement of this equipment see the enforcement of preceding method, can repeat part and repeat no more.
As shown in Figure 7, the equipment of a kind of system call that the embodiment of the present invention provides, is applied in communication class software, comprises:
The equipment of a kind of system call that the embodiment of the present invention provides, is applied in communication class software, comprises:
Top-level module 701, for receive user input steering order after, pre-service is carried out to the steering order received and obtains control message, control message is handed down to the middle layer module 702 of equipment;
Middle layer module 702, for generating at least one task according to the control message received, and task is handed down at least one bottom submodule 703 of corresponding equipment, the bottom submodule 703 that wherein the task correspondence one of every type is different;
Bottom submodule 703, for processing according to the task receiving middle layer module 702 transmission.
Preferably, top-level module 701 specifically for:
When the steering order received being carried out pre-service and obtaining control message, the steering order received is encapsulated in cell mode, obtains control message;
Middle layer module 702 specifically for:
Decapsulation is carried out to the control message received, obtains steering order, and generate at least one task according to steering order.
Preferably, top-level module 701 also for:
After the steering order receiving user's input, according to the parameter information mutual with database, form configuration file, and configuration file and control message are handed down in the lump the middle layer module 702 of equipment;
Middle layer module 702 specifically for:
According to the configuration file received, decapsulation is carried out to the control message received, obtain steering order.
Preferably, middle layer module 702 also for:
Carry out decapsulation to the control message received, after obtaining steering order, the steering order that can obtain according to decapsulation, when time when carrying out task to bottom submodule 703 and bottom submodule 703 carry out task, system resource used is dispatched.
Preferably, bottom submodule 703 also for:
According to receive task that middle layer module 702 sends process time, carry out in the process processed according to receiving the task that middle layer module 702 sends, the middle layer module 702 to equipment reports self status information;
Middle layer module 702 also for:
According to the duty of the status information monitoring bottom submodule 703 received; Defining the bottom submodule 703 of abnormality, and after the bottom submodule 703 of abnormality cannot recover voluntarily, recovery operation is being carried out to the bottom submodule 703 of abnormality.
Preferably, middle layer module 702 also for, following situations occur after, determine the bottom submodule 703 that there is abnormality, and the bottom submodule 703 of abnormality cannot recover voluntarily:
The status information that the bottom submodule 703 not receiving task of dealing with the work in setting duration reports.
In the embodiment of the present invention, method due to the system call provided is that equipment be divide into top layer, middle layer and bottom three levels, wherein, top layer is only responsible for the work of user oriented and data, middle layer then takes charge of the explanation order and generation task, separate between each bottom submodule, do not rely on mutually, by middle layer United Dispatching, having well defined power and responsibility between three levels, Each performs its own functions, compared with adopting the mode of serialized software framework with prior art communication class software like this, improve the stability of system, and the version of three levels reduces the difficulty of software maintenance work.
Through the above description of the embodiments, those skilled in the art can be well understood to the embodiment of the present invention can by hardware implementing, and the mode that also can add necessary general hardware platform by software realizes.Based on such understanding, the technical scheme of the embodiment of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions and perform method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server, or the network equipment etc.).
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in embodiment in equipment can carry out being distributed in the equipment of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more equipment being different from the present embodiment.The module of above-described embodiment can merge into a module, also can split into multiple submodule further.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (12)

1. a method for system call, is applied in communication class software architecture, it is characterized in that, comprising:
The top layer of equipment carries out pre-service to the described steering order received and obtains control message, described control message is handed down to the middle layer of equipment after receiving the steering order of user's input;
The middle layer of described equipment generates at least one task according to the described control message received, and described task is handed down at least one bottom submodule of corresponding described equipment, the bottom submodule that wherein the task correspondence one of every type is different;
Described bottom submodule processes according to the task receiving the transmission of described middle layer.
2. the method for claim 1, is characterized in that, the described steering order received is carried out pre-service and obtained control message by the top layer of described equipment, comprising:
The described steering order received encapsulates in cell mode by the top layer of described equipment, obtains described control message;
The middle layer of described equipment generates at least one task according to the described control message received, and comprising:
Decapsulation is carried out to the described control message received in the middle layer of described equipment, obtains steering order, and generates at least one task according to described steering order.
3. method as claimed in claim 2, is characterized in that, after the top layer of described equipment receives the steering order of user's input, also comprises:
The top layer of described equipment, according to the parameter information mutual with database, forms configuration file, and described configuration file and described control message is handed down in the lump the middle layer of equipment;
Decapsulation is carried out to the described control message received in the middle layer of described equipment, obtains described steering order, comprising:
The middle layer of described equipment carries out decapsulation according to the described configuration file received to the described control message received, and obtains described steering order.
4. method as claimed in claim 2, it is characterized in that, decapsulation is carried out to the described control message received in the middle layer of described equipment, after obtaining steering order, also comprises:
The steering order that the middle layer of described equipment can obtain according to decapsulation, when time when carrying out task to described bottom submodule and described bottom submodule carry out task, system resource used is dispatched.
5. the method for claim 1, is characterized in that, described bottom submodule processes according to the task receiving the transmission of described middle layer, also comprises:
Described bottom submodule carries out in the process processed according to receiving the task that described middle layer sends, and the middle layer to described equipment reports self status information;
The method also comprises:
The duty of described bottom submodule is monitored in the middle layer of described equipment according to the described status information received;
Described equipment is defining the described bottom submodule of abnormality, and after the described bottom submodule of abnormality cannot recover voluntarily, carries out recovery operation to the described bottom submodule of abnormality.
6. method as claimed in claim 5, is characterized in that, the middle layer of described equipment, after following situations occurs, determine the described bottom submodule that there is abnormality, and the described bottom submodule of abnormality cannot recover voluntarily:
The status information that the described bottom submodule that the middle layer of described equipment does not receive task of dealing with the work in setting duration reports.
7. an equipment for system call, is applied in communication class software, it is characterized in that, comprising:
Top-level module, for receive user input steering order after, pre-service is carried out to the described steering order received and obtains control message, described control message is handed down to the middle layer module of equipment;
Middle layer module, for generating at least one task according to the described control message received, and described task is handed down at least one bottom submodule of corresponding described equipment, the bottom submodule that wherein the task correspondence one of every type is different;
Bottom submodule, for processing according to the task receiving the transmission of described middle layer module.
8. equipment as claimed in claim 7, is characterized in that, described top-level module specifically for:
When the described steering order received being carried out pre-service and obtaining control message, the described steering order received is encapsulated in cell mode, obtains control message;
Described middle layer module specifically for:
Decapsulation is carried out to the described control message received, obtains steering order, and generate at least one task according to described steering order.
9. equipment as claimed in claim 8, is characterized in that, described top-level module also for:
After the steering order receiving user's input, according to the parameter information mutual with database, form configuration file, and described configuration file and described control message are handed down in the lump the middle layer module of equipment;
Described middle layer module specifically for:
According to the described configuration file received, decapsulation is carried out to the described control message received, obtain steering order.
10. equipment as claimed in claim 9, is characterized in that, described middle layer module also for:
Carry out decapsulation to the described control message received, after obtaining steering order, the steering order that can obtain according to decapsulation, when time when carrying out task to described bottom submodule and described bottom submodule carry out task, system resource used is dispatched.
11. equipment as claimed in claim 7, is characterized in that, described bottom submodule also for:
According to receive task that described middle layer module sends process time, carry out in the process processed according to receiving the task that described middle layer module sends, the middle layer module to described equipment reports self status information;
Described middle layer module also for:
The duty of described bottom submodule is monitored according to the described status information received; Defining the described bottom submodule of abnormality, and after the described bottom submodule of abnormality cannot recover voluntarily, recovery operation is being carried out to the described bottom submodule of abnormality.
12. equipment as claimed in claim 11, is characterized in that, described middle layer module also for, following situations occur after, determine the described bottom submodule that there is abnormality, and the described bottom submodule of abnormality cannot recover voluntarily:
The status information that the described bottom submodule not receiving task of dealing with the work in setting duration reports.
CN201410653254.3A 2014-11-17 2014-11-17 A kind of method and apparatus of system call Active CN104346219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410653254.3A CN104346219B (en) 2014-11-17 2014-11-17 A kind of method and apparatus of system call

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410653254.3A CN104346219B (en) 2014-11-17 2014-11-17 A kind of method and apparatus of system call

Publications (2)

Publication Number Publication Date
CN104346219A true CN104346219A (en) 2015-02-11
CN104346219B CN104346219B (en) 2018-05-01

Family

ID=52501904

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410653254.3A Active CN104346219B (en) 2014-11-17 2014-11-17 A kind of method and apparatus of system call

Country Status (1)

Country Link
CN (1) CN104346219B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786502A (en) * 2016-02-26 2016-07-20 成都雅骏新能源汽车科技股份有限公司 Scheduling embedded application software architecture and implementation method thereof
CN107168789A (en) * 2016-03-08 2017-09-15 阿里巴巴集团控股有限公司 The serial scheduling method and device of multitask
CN107247594A (en) * 2017-06-12 2017-10-13 武汉斗鱼网络科技有限公司 Flogic system and its implementation, computing device and computer-readable recording medium
WO2018072085A1 (en) * 2016-10-18 2018-04-26 中兴通讯股份有限公司 Multi-device collaborative operation method and devices, and computer storage medium
CN110134074A (en) * 2018-02-02 2019-08-16 华中科技大学 A kind of production line control system and its control method
CN114390083A (en) * 2021-12-27 2022-04-22 杭州电子科技大学 Distributed modular electrical safety control terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630271A (en) * 2009-06-26 2010-01-20 湖南大学 Middleware supporting system for simulating and calculating earthquake in grid environment
US20110167245A1 (en) * 2010-01-06 2011-07-07 Mindspeed Technologies, Inc. Task list generation, parallelism templates, and memory management for multi-core systems
CN102467415A (en) * 2010-11-03 2012-05-23 大唐移动通信设备有限公司 Service facade task processing method and equipment
CN103906257A (en) * 2014-04-18 2014-07-02 北京邮电大学 LTE broadband communication system calculation resource dispatcher based on GPP and dispatching method thereof
US20140304713A1 (en) * 2011-11-23 2014-10-09 Telefonaktiebolaget L M Ericsson (pulb) Method and apparatus for distributed processing tasks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630271A (en) * 2009-06-26 2010-01-20 湖南大学 Middleware supporting system for simulating and calculating earthquake in grid environment
US20110167245A1 (en) * 2010-01-06 2011-07-07 Mindspeed Technologies, Inc. Task list generation, parallelism templates, and memory management for multi-core systems
CN102467415A (en) * 2010-11-03 2012-05-23 大唐移动通信设备有限公司 Service facade task processing method and equipment
US20140304713A1 (en) * 2011-11-23 2014-10-09 Telefonaktiebolaget L M Ericsson (pulb) Method and apparatus for distributed processing tasks
CN103906257A (en) * 2014-04-18 2014-07-02 北京邮电大学 LTE broadband communication system calculation resource dispatcher based on GPP and dispatching method thereof

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786502A (en) * 2016-02-26 2016-07-20 成都雅骏新能源汽车科技股份有限公司 Scheduling embedded application software architecture and implementation method thereof
CN105786502B (en) * 2016-02-26 2019-09-03 成都雅骏新能源汽车科技股份有限公司 A kind of scheduling formula embedded application software framework and its implementation
CN107168789A (en) * 2016-03-08 2017-09-15 阿里巴巴集团控股有限公司 The serial scheduling method and device of multitask
WO2018072085A1 (en) * 2016-10-18 2018-04-26 中兴通讯股份有限公司 Multi-device collaborative operation method and devices, and computer storage medium
CN107247594A (en) * 2017-06-12 2017-10-13 武汉斗鱼网络科技有限公司 Flogic system and its implementation, computing device and computer-readable recording medium
CN110134074A (en) * 2018-02-02 2019-08-16 华中科技大学 A kind of production line control system and its control method
CN114390083A (en) * 2021-12-27 2022-04-22 杭州电子科技大学 Distributed modular electrical safety control terminal
CN114390083B (en) * 2021-12-27 2024-03-01 杭州电子科技大学 Distributed modular electrical safety control terminal

Also Published As

Publication number Publication date
CN104346219B (en) 2018-05-01

Similar Documents

Publication Publication Date Title
CN104346219A (en) Method and equipment for system scheduling
CN103761614A (en) Project progress management method based on critical chain
CN102196039B (en) Cloud-computing-based multi-robot system and implementation method thereof
CN105745585B (en) Unload human-computer interaction task
CN107122232B (en) Multimedia task processing device and method
CN104240406A (en) Printing production control and early-warning system
CN104216785A (en) Common policy task system and implementing method thereof
CN111274033B (en) Resource deployment method, device, server and storage medium
CN111240935B (en) Automatic intelligent operation and maintenance system and operation and maintenance method
CN103713942A (en) Method and system for dispatching and running a distributed computing frame in cluster
TW201816598A (en) Task switching method and related device
CN110350655A (en) One kind is ordered system with grid operation ticket sequencing
CN102508717A (en) Memory scheduling method and memory scheduling device for multi-core processor
CN104809551B (en) A kind of cross-system workflow Synergistic method based on mobile Agent client
CN105955820A (en) Method, device, and system for job stream control
CN112346750B (en) Configuration software control method, system and storage medium
CN102938113A (en) Power grid failure recovery method and system based on power failure management system platform
CN106487469B (en) A kind of timing node switching method and system
WO2021254625A1 (en) Reserve radio resources for planned actions
US8301273B2 (en) Method for providing functions in an industrial automation system, control program and industrial automation system
CN105786482A (en) Artificial intelligence system
CN104426695A (en) Method and system for heterogeneous equipment account management
CN110990165B (en) Method for simultaneously working multiple users in multi-channel concurrent transmission system and transmission server
CN101502149A (en) A network managing system for completing customized operation automatically and a method thereof
CN104009859A (en) Operation work order automatic processing method based on monitoring information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 510663 No. 10 Shenzhou Road, Science City, Luogang District, Guangzhou City, Guangdong Province

Patentee after: Jingxin Network System Co.,Ltd.

Address before: 510663 No. 10 Shenzhou Road, Science City, Luogang District, Guangzhou City, Guangdong Province

Patentee before: Comba Telecom System (China) Ltd.