CN106598599B - A kind of execution method and apparatus of program - Google Patents

A kind of execution method and apparatus of program Download PDF

Info

Publication number
CN106598599B
CN106598599B CN201611161422.2A CN201611161422A CN106598599B CN 106598599 B CN106598599 B CN 106598599B CN 201611161422 A CN201611161422 A CN 201611161422A CN 106598599 B CN106598599 B CN 106598599B
Authority
CN
China
Prior art keywords
terminal
program segment
execution
request
code data
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
CN201611161422.2A
Other languages
Chinese (zh)
Other versions
CN106598599A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201611161422.2A priority Critical patent/CN106598599B/en
Publication of CN106598599A publication Critical patent/CN106598599A/en
Application granted granted Critical
Publication of CN106598599B publication Critical patent/CN106598599B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention proposes a kind of execution method and apparatus of program, applied in the system including multiple terminals, wherein the execution method includes: each terminal being sent to complete code data set in system;Wherein, code data needed for being successively stored with each terminal according to processing sequence in the complete code data set;It for each terminal, is executed in code data by current terminal and belongs to the program segment of itself, and identify terminal corresponding to next program segment;It is sent to the terminal identified by request is executed by current terminal, will pass through the program segment that the terminal identified execution belongs to itself;Wherein, described execute includes business datum needed for the location information and the next program segment of execution of the mark, next program segment of next terminal in code data in request.It with this, does not need to split program according to the difference of performed terminal, so that all shared same program of all terminals in whole system, reduces the adaptation difficulty of the program between different terminals, and reduce the maintenance difficulties of program.

Description

A kind of execution method and apparatus of program
Technical field
The present invention relates to computer field, in particular to the execution method and apparatus of a kind of program.
Background technique
In reality electronic system, many functions of software systems require from multiple terminals jointly with complete, this is just needed It wants to realize data communication between different terminals, and programming languages all at present will realize the communication between different terminals, all be It is developed in one mode.It is complete by one namely based on the programming interface for sending data and reception data Operation flow splits into different parts according to performed terminal, this makes the code maintenance of entire communication system improve difficulty Degree.The data communication of each section also needs to carry out converting to be adapted to programming interface by data according to the characteristics of programming interface, Development efficiency will be affected in this way, and the adaptation of data can also promote the difficulty of programming.
Summary of the invention
For the defects in the prior art, the invention proposes a kind of execution methods and apparatus of program, existing to overcome There is the defects of technology.
Specifically, the present invention specifically proposes specific embodiment:
The embodiment of the present invention proposes a kind of execution method of program, and applied in the system including multiple terminals, this is held Row method includes:
Each terminal complete code data set being sent in system;Wherein, in the complete code data set according to Code data needed for processing sequence is successively stored with each terminal;
It for each terminal, is executed in code data by current terminal and belongs to the program segment of itself, and identified down Terminal corresponding to one program segment, generation execute request;
It is sent to the terminal identified by request is executed by current terminal, executes category will pass through the terminal identified In the program segment of itself;Wherein, the mark for including next terminal in request, the next program segment of executing is in code data Business datum needed for location information and the next program segment of execution.
Further, this method further includes:
Request is executed when present terminal receives, determines terminal belonging to the program segment next to be executed;If it is determined that Terminal is not itself, then generates corresponding execution request and be sent to identified terminal
If current tupe is synchronous mode, retain the execution session data of current terminal, and suspend subsequent The execution of program segment;
If current tupe is asynchronous mode, the program segment for being not belonging to itself is skipped by current terminal, The subsequent program segment for belonging to itself is executed, and retains an asynchronous object.
Further, this method further includes:
If current terminal, which is received, executes request from other terminals, held by current terminal based on what is received Location information and pending program segment of the pending program segment of row request in code data execute required business Data;
The program segment needed to be implemented is obtained according to the location information of acquisition, and is executed according to the business datum executed in request Acquired program segment;And when recognizing the program segment next to be executed during execution, recognized in conjunction with correspondence The business datum of program segment generates to execute and requests to be sent to terminal corresponding to the program segment recognized.
Further, this method further includes:
If the treatment process of current terminal is that the execution sent based on other terminals is requested and carried out, at current end End executes after the corresponding program segment of completion, further includes:
The operation data after the completion of other terminal feedback processings of request is executed to transmission by current terminal;
If other terminal processes are the treatment processes initiated in a synchronous mode, held by what the elimination of other terminals was retained Row session data, and the operation data based on feedback executes affiliated program segment;
If other terminal processes are the treatment processes initiated in an asynchronous mode, pass through other terminals for the operation number of feedback According to being stored in asynchronous object.
Further, this method further includes:
When having detected the presence of execution request processing failure, if the terminal for executing request processing failure is in a synchronous mode It initiates, the program for executing request failure is corresponded to execute by the execution session data that specified terminal retains before Section;
If the terminal for executing request processing failure is initiated in an asynchronous mode, by specified terminal that failure result is anti- It feeds asynchronous object.
The embodiment of the present invention also proposed a kind of execution equipment of program, applied in the system including multiple terminals, be somebody's turn to do Executing equipment includes:
Sending module, each terminal for being sent to complete code data set in system;Wherein, the complete code Code data needed for being successively stored with each terminal according to processing sequence in data set;
First processing module belongs to the program segment of itself for executing in code data by current terminal, and identifies Terminal corresponding to next program segment out, generation execute request;
Sending module, for being sent to the terminal identified for request is executed by current terminal, will pass through identification Terminal out executes the program segment for belonging to itself;Wherein, described to execute the mark in request including next terminal, next program segment Business datum needed for location information and the next program segment of execution in code data.
Further, equipment further include: Second processing module is determined for executing request when present terminal receives Next terminal described in the program segment to be executed;
If it is determined that terminal be not itself, then generate corresponding execution request and be sent to identified terminal
If current tupe is synchronous mode, retain the execution session data of current terminal, and suspend subsequent The execution of program segment;
If current tupe is asynchronous mode, the program segment for being not belonging to itself is skipped by current terminal, The subsequent program segment for belonging to itself is executed, and retains an asynchronous object.
Further, the equipment further include: third processing module, for receiving when current terminal from other terminals Execution request when, by current terminal based on the pending program segment of the execution request received in code data Location information and pending program segment execute needed for business datum;
The program segment needed to be implemented is obtained according to the location information of acquisition, and is executed according to the business datum executed in request Acquired program segment;And when recognizing the program segment next to be executed during execution, recognized in conjunction with correspondence The business datum of program segment generates to execute and requests to be sent to terminal corresponding to the program segment recognized.
Further, equipment further include: fourth processing module is based on it for the treatment process when current terminal His terminal execution request sent and carry out, after current terminal executes and completes corresponding program segment, by current Terminal executes the operation data after the completion of other terminal feedback processings of request to transmission;
If other terminal processes are the treatment processes initiated in a synchronous mode, held by what the elimination of other terminals was retained Row session data, and the operation data based on feedback executes affiliated program segment;
If other terminal processes are the treatment processes initiated in an asynchronous mode, pass through other terminals for the operation number of feedback According to being stored in asynchronous object.
Further, equipment further include: the 5th processing module has detected the presence of execution request processing failure for working as When, if the terminal for executing request processing failure is initiated in a synchronous mode, held by what specified terminal retained before Row session data requests the program segment to fail to execute corresponding execution;
If the terminal for executing request processing failure is initiated in an asynchronous mode, by specified terminal that failure result is anti- It feeds asynchronous object.
Compared with prior art, the embodiment of the present invention proposes a kind of execution method and apparatus of program, applied to including In the system of multiple terminals, wherein the execution method includes: each terminal being sent to complete code data set in system; Wherein, code data needed for being successively stored with each terminal according to processing sequence in the complete code data set;For each Terminal is executed in code data by current terminal and belongs to the program segment of itself, and identified corresponding to next program segment Terminal;It being sent to the terminal identified by request is executed by current terminal, being belonged to will pass through the terminal identified execution The program segment of itself;Wherein, described execute in request includes the position of the mark, next program segment of next terminal in code data Business datum needed for confidence ceases and executes next program segment.With this, do not need according to the difference of performed terminal and to journey Sequence is split, so that all shared same program of all terminals in whole system, reduces the program between different terminals It is adapted to difficulty, and reduces the maintenance difficulties of program.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of flow diagram of the execution method for program that the embodiment of the present invention proposes;
Fig. 2 is a kind of structural schematic diagram for complete code data set that the embodiment of the present invention proposes;
Fig. 3 is a kind of structural schematic diagram of the execution equipment for program that the embodiment of the present invention proposes.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually The component for the embodiment of the present invention for describing and showing in attached drawing here can be arranged and be designed with a variety of different configurations.Cause This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
For the defects in the prior art, the invention proposes a kind of execution methods and apparatus of program, existing to overcome There is the defects of technology, so that no longer needing the difference according to terminal and splitting to code data, so that in whole system The all shared identical code data of all terminals, reduce the adaptation difficulty of code data, and reduce the maintenance of code data Difficulty.
Specifically, the invention proposes embodiments in detail below:
Embodiment 1
The embodiment of the present invention proposes a kind of execution method of program, applied to include multiple terminals system in, such as Fig. 1 It is shown, the execution method the following steps are included:
Step 101, each terminal being sent to complete code data set in system;Wherein, the complete code data Code data needed for concentration is successively stored with each terminal according to processing sequence;
Specifically, being illustrated by taking a specific embodiment as an example, a complete code data set can correspond to one A reality completely needs, such as corresponding to lower quintet game, it is of course also possible to others function or needs be corresponded to, at one In actual embodiment, a complete code data set can be as shown in Fig. 2, include that multiple code datas (specifically correspond to Program segment), each program segment is corresponding with different terminals, and in actual treatment process, terminal only carries out the program for corresponding to itself Section, code data to be processed needed for each terminal is successively stored with according to processing sequence in complete code data set, such as Fig. 2 institute It is shown as example, the execution sequence of corresponding program segment is from starting to be followed successively by terminal 1, terminal 3, terminal 2, terminal 1, terminal 2.
In addition, about program segment 1, it can be preset in while issue complete code data set, the execution of program segment 1 is set Terminal, for example, terminal 1, and issue to the terminal 1 business datum of corresponding execution phase 1 make the terminal 1 can be with this The program segment 1 is directly executed,
It is the explanation with a specific example to carry out above, in addition to this, the number of specific sequence and program segment Amount can according to the actual situation and need difference and it is different.
Step 102 is directed to each terminal, and the program segment for belonging to itself in code data is executed by current terminal, and Identify terminal corresponding to next program segment, generation executes request;
It is illustrated still for above-mentioned, for each terminal, each terminal only carries out the program segment for belonging to itself, example Such as a specific embodiment in Fig. 2, by taking terminal 1 as an example, terminal 1 only carries out program segment 1 and program segment 4, other Terminal is similar, also all only carries out the program segment for belonging to itself, and while execution belongs to the program segment of itself, also identifies Terminal corresponding to next program segment, by taking Fig. 2 as an example, terminal 1 identifies next program segment (namely journey in execution phase 1 Sequence section 2) corresponding to terminal identify in this specific embodiment as terminal 3.
A kind of specific identification embodiment, process can be the mark for being stored with counterpart terminal in each program segment in advance Know, identified with this, there can also be many other specific embodiments to be identified certainly, as long as can effectively identify, It is not limited to a kind of this specific mode.Such as there are also a kind of modes, can not distinguish execution terminal, generation for code data itself The corresponding program segment of code data itself includes cross-terminal jump instruction, and terminal goes to cross-terminal jump during execution phase When turning instruction, the terminal of next program segment is judged according to the parameter in instruction.
It is several specific identification methods above, in actual application, however it is not limited to which above is several, specific to know Other mode can neatly be adjusted based on needs and actual application environment, as long as being able to achieve identification, and unlimited In specific identification method.
After having identified, generation executes request;Wherein, it is described execute include in request next terminal mark, next Location information and execution next program segment of the program segment in code data execute required business datum.
Step 103 is sent to the terminal identified for request is executed by current terminal, will pass through the end identified End executes the program segment for belonging to itself.
Be illustrated still for above-mentioned, such as terminal 1 is in execution phase 1, identify next program segment (namely Program segment 2) corresponding to terminal identify in this specific embodiment and carry out execution phase 2 for terminal 3, with this end End 1 executes request to the transmission of terminal 3, includes that the location information of program segment 2 and terminal 3 execute code in execution request Business datum required for data 2 (such as program segment 2 is the broadcast message of instruction terminal 3, and a kind of specific reality of business datum Applying example is the content specifically broadcasted, and specifically can need different embodiments according to different), with this terminal 3 is connect After receiving execution request, program segment 2 is found, and while according to required business datum execution phase 2, is also identified Terminal corresponding to next program segment, namely step 102 is periodically executed, until program segment all handles completion.
Specifically, in a practical example, this method can also include:
Request is executed when present terminal receives, determines terminal belonging to the program segment next to be executed;
If it is determined that terminal be not itself, then generate corresponding execution request and be sent to identified terminal
If current tupe is synchronous mode, retain the execution session data of current terminal, and suspend subsequent The execution of program segment;
If current tupe is asynchronous mode, the program segment for being not belonging to itself is skipped by current terminal, The subsequent program segment for belonging to itself is executed, and retains an asynchronous object.
Specifically, the process of processing can be synchronous mode, or asynchronous mode due in specific embodiment.
Such as user logs in, it is necessary to execute synchronous mode, in the case, user is when client logs in, client Server-side can only be waited to have handled logon data could be by feedback result to the client where user.
It as asynchronous mode, is illustrated so that server-side is broadcasted as an example, in the case, server-side notifies one by one The feedback for not needing to obtain client when client in time can also notify next client;If being synchronized using using Mode can make the time interval being notified between different clients excessive, can not be applicable in actual needs instead.
In addition, about net cast under normal circumstances, process is asynchronous mode because camera one end only need by Video data transmission is gone out without there is any feedback, and receiving end only needs to receive video data, does not need to feed back any place Result is managed to camera.But if receiving end needs to control the working condition of camera, in the case, then its process is synchronous Mode needs to feed back working condition since it is desired that knowing the working condition of camera.
It is illustrated with a specific example, if terminal 3 receives execution request, itself judges that the execution is asked The program segment (for example, program segment 6) of required execution in asking be not it is corresponding itself, program segment 6 can be identified, example It such as identifies as counterpart terminal 7, request is executed by the generation of terminal 3 with this, is sent to terminal 7.
If current tupe is synchronous mode, terminal 3 waits terminal 7 to handle this and executes request, during this period, eventually End 3 retains current execution session data, and suspends the execution of down-stream section;By taking the example of above-mentioned synchronous mode as an example, eventually End 3 is used as client, and terminal 7 is used as server-side, therefore the logging request of needs of terminal 3 etc. 7 processing terminal 3 of terminal, terminal 3 Retain the state that current preparation logs in, namely retain current execution session data, and when retaining, suspends down-stream section Execution, such as subsequent program segment is corresponding log in after game operation, execution will be suspended at this time.
And if current tupe is asynchronous mode, then terminal 3 skips the program segment for being not belonging to itself, executes subsequent Belong to the program segment of itself, and retains an asynchronous object.
Still by taking the example of above-mentioned asynchronous mode as an example, terminal 3 is as the server-side broadcasted, such as the program segment of itself 1, it 2,3 respectively corresponds to the 1st terminal and sends message, message is sent to the 2nd terminal, sending message, thus terminal 3 to the 3rd terminal Code data 1,2,3 can be executed with this, the feedback without waiting until the 1st terminal, the feedback of the 2nd terminal, the feedback of the 3rd terminal, Instruction executes corresponding operation after retaining each terminal feedback of exception object, etc., encounters the program segment for being not belonging to itself, example It such as program segment 4, then directly skips, without processing.
Specifically, in a specific embodiment, this method, further includes:
If current terminal, which is received, executes request from other terminals, held by current terminal based on what is received Location information and pending program segment of the pending program segment of row request in code data execute required business Data;
The program segment needed to be implemented is obtained according to the location information of acquisition, and is executed according to the business datum executed in request Acquired program segment;And when recognizing the program segment next to be executed during execution, recognized in conjunction with correspondence The business datum of program segment generates to execute and requests to be sent to terminal corresponding to the program segment recognized.
Specifically, such as terminal 3 receive carry out self terminal 1 execute request, at terminal 3 is to execution request Reason then generates corresponding execution request based on this and is sent to if during the treatment, recognizing the program segment for belonging to terminal 4 Terminal 4.
In a specific embodiment, if the treatment process of current terminal is that the execution sent based on other terminals is asked It asks and carries out, after current terminal executes the corresponding program segment of completion, further includes:
The operation data after the completion of other terminal feedback processings of request is executed to transmission by current terminal;
If other terminal processes are the treatment processes initiated in a synchronous mode, held by what the elimination of other terminals was retained Row session data, and the operation data based on feedback executes affiliated program segment;
If other terminal processes are the treatment processes initiated in an asynchronous mode, pass through other terminals for the operation number of feedback According to being stored in asynchronous object.
Here, being illustrated with specific embodiment, if the treatment process of terminal 3 is sent based on terminal 1 It executes request and carries out, after execution request is completed in the processing of terminal 3, terminal 3 is to the fortune after the completion of 1 feedback processing of terminal Row data;
If the processing of terminal 1 at this time is synchronous mode to carry out, terminal 1 eliminates the former execution session number retained According to, and execute based on the operation data fed back the program segment belonging to itself.
And if the processing of terminal 1 at this time is asynchronous mode to carry out, then the operation data of feedback is stored in by terminal 1 In asynchronous object.
In a specific embodiment, this method further include:
When having detected the presence of execution request processing failure, if the terminal for executing request processing failure is in a synchronous mode It initiates, the program for executing request failure is corresponded to execute by the execution session data that specified terminal retains before Section;
If the terminal for executing request processing failure is initiated in an asynchronous mode, by specified terminal that failure result is anti- It feeds asynchronous object.
Specifically, here, by the corresponding function of complete code data set be lower quintet game for, in the body that the tool is played chess In application scenarios, there are two terminals, respectively two terminals of playing chess, when certain abnormal conditions (examples occur for a terminal played chess Such as suspension) or user when occurring situations such as playing for time by deliberate intention, when causing to execute request processing failure, then by remaining The execution session data that terminal retains before corresponds to the program segment for executing request identification to handle, in the specific embodiment In, processing for example can be directly to determine remaining terminal triumph.
Be above in a synchronous mode for come the explanation that carries out;If asynchronous mode, then can failed regeneration as a result, and will lose It loses result and feeds back to asynchronous object.
Embodiment 2
The embodiment of the present invention 2 also proposed a kind of execution equipment of program, which is characterized in that be applied to include multiple terminals System in, as shown in Fig. 2, the execution equipment includes:
Sending module 201, each terminal for being sent to complete code data set in system;Wherein, described complete Code data needed for code data concentration is successively stored with each terminal according to processing sequence;
First processing module 202 is executed in code data by current terminal for being directed to each terminal and belongs to itself Program segment, and identify terminal corresponding to next program segment, generation executes request;
Sending module 203 is known for being sent to the terminal identified for request is executed by current terminal with will pass through Not Chu terminal execute and belong to itself program segment;Wherein, mark, the next program executed in request including next terminal Business datum needed for location information and the next program segment of execution of the section in code data.
Specifically, the execution equipment further include: Second processing module, for executing request when present terminal receives, really Terminal belonging to the fixed program segment next to be executed;
If it is determined that terminal be not itself, then generate corresponding execution request and be sent to identified terminal
If current tupe is synchronous mode, retain the execution session data of current terminal, and suspend subsequent The execution of program segment;
If current tupe is asynchronous mode, the program segment for being not belonging to itself is skipped by current terminal, The subsequent program segment for belonging to itself is executed, and retains an asynchronous object.
Specifically, the code data processing equipment further include: third processing module, for coming when current terminal receives From when the execution request of other terminals, existed by current terminal based on the pending program segment of the execution request received Location information and pending program segment in code data execute required business datum;
The program segment needed to be implemented is obtained according to the location information of acquisition, and is executed according to the business datum executed in request Acquired program segment;And when recognizing the program segment next to be executed during execution, recognized in conjunction with correspondence The business datum of program segment generates to execute and requests to be sent to terminal corresponding to the program segment recognized.
Specifically, the execution equipment further include: fourth processing module is to be based on for the treatment process when current terminal Other terminals execution requests sent and carry out, after current terminal executes and completes corresponding program segment, by current Terminal to send execute request other terminal feedback processings after the completion of operation data;
If other terminal processes are the treatment processes initiated in a synchronous mode, held by what the elimination of other terminals was retained Row session data, and the operation data based on feedback executes affiliated program segment;
If other terminal processes are the treatment processes initiated in an asynchronous mode, pass through other terminals for the operation number of feedback According to being stored in asynchronous object.
Specifically, the execution equipment further include: the 5th processing module has detected the presence of execution request processing mistake for working as When losing, if the terminal for executing request processing failure is initiated in a synchronous mode, retained before by specified terminal Session data is executed to execute the corresponding program segment for executing request failure;
If the terminal for executing request processing failure is initiated in an asynchronous mode, by specified terminal that failure result is anti- It feeds asynchronous object.
Compared with prior art, the embodiment of the present invention proposes a kind of execution method and apparatus of program, applied to including In the system of multiple terminals, wherein the execution method includes: each terminal being sent to complete code data set in system; Wherein, code data needed for being successively stored with each terminal according to processing sequence in the complete code data set;For each Terminal is executed in code data by current terminal and belongs to the program segment of itself, and identified corresponding to next program segment Terminal;It being sent to the terminal identified by request is executed by current terminal, being belonged to will pass through the terminal identified execution The program segment of itself;Wherein, described execute in request includes the position of the mark, next program segment of next terminal in code data Business datum needed for confidence ceases and executes next program segment.With this, do not need according to the difference of performed terminal and to journey Sequence is split, so that all shared same program of all terminals in whole system, reduces the program between different terminals It is adapted to difficulty, and reduces the maintenance difficulties of program.
The flow chart and block diagram in the drawings show the system of multiple embodiments according to the present invention, method and computer journeys The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, section or code of table, a part of the module, section or code are used for comprising one or more The executable instruction of logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box Function can also occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be basic It is performed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that The combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be used and execute regulation Function or the dedicated hardware based system of movement realize, or can be using a combination of dedicated hardware and computer instructions To realize.
In several embodiments provided herein, it should be understood that disclosed mthods, systems and devices, it can be with It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the module, only Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple module or components can be with In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be the indirect coupling by some communication interfaces, device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (8)

1. a kind of execution method of program, which is characterized in that applied to include multiple terminals system in, the execution method packet It includes:
Each terminal complete code data set being sent in system;Wherein, according to processing in the complete code data set Code data needed for sequence is successively stored with each terminal;
It for each terminal, is executed in code data by current terminal and belongs to the program segment of itself, and identify next journey Terminal corresponding to sequence section, generation execute request;
It being sent to the terminal identified by request is executed by current terminal, being belonged to certainly with will pass through the terminal identified execution The program segment of body;Wherein, described execute in request includes the position of the mark, next program segment of next terminal in code data Business datum needed for information and the next program segment of execution
Request is executed when present terminal receives, determines terminal belonging to the program segment next to be executed;
If it is determined that terminal be not itself, then generate corresponding execution request and be sent to identified terminal;
If current tupe is synchronous mode, retain the execution session data of current terminal, and suspend down-stream The execution of section;
If current tupe is asynchronous mode, the program segment for being not belonging to itself is skipped by current terminal, is executed The subsequent program segment for belonging to itself, and retain an asynchronous object.
2. executing method as described in claim 1, which is characterized in that further include:
If current terminal, which is received, executes request from other terminals, asked by current terminal based on the execution received Seek the business datum obtained needed for location information and pending program segment of the pending program segment in code data execute;
The program segment needed to be implemented is obtained according to the location information of acquisition, and is obtained according to the business datum execution executed in request The program segment taken;And when recognizing the program segment next to be executed during execution, in conjunction with the corresponding program recognized The business datum of section generates to execute and requests to be sent to terminal corresponding to the program segment recognized.
3. a kind of execution method of program, which is characterized in that applied to include multiple terminals system in, the execution method packet It includes:
Each terminal complete code data set being sent in system;Wherein, according to processing in the complete code data set Code data needed for sequence is successively stored with each terminal;
It for each terminal, is executed in code data by current terminal and belongs to the program segment of itself, and identify next journey Terminal corresponding to sequence section, generation execute request;
It being sent to the terminal identified by request is executed by current terminal, being belonged to certainly with will pass through the terminal identified execution The program segment of body;Wherein, described execute in request includes the position of the mark, next program segment of next terminal in code data Business datum needed for information and the next program segment of execution;
If the treatment process of current terminal is that the execution sent based on other terminals is requested and carried out, held in current terminal Row is completed after corresponding program segment, further includes:
The operation data after the completion of other terminal feedback processings of request is executed to transmission by current terminal;
If other terminal processes are the treatment processes initiated in a synchronous mode, are eliminated by other terminals and retained execute meeting Data are talked about, and the operation data based on feedback executes affiliated program segment;
If other terminal processes are the treatment processes initiated in an asynchronous mode, the operation data of feedback is deposited by other terminals Storage is in asynchronous object.
4. a kind of execution method of program, which is characterized in that applied to include multiple terminals system in, the execution method packet It includes:
Each terminal complete code data set being sent in system;Wherein, according to processing in the complete code data set Code data needed for sequence is successively stored with each terminal;
It for each terminal, is executed in code data by current terminal and belongs to the program segment of itself, and identify next journey Terminal corresponding to sequence section, generation execute request;
It being sent to the terminal identified by request is executed by current terminal, being belonged to certainly with will pass through the terminal identified execution The program segment of body;Wherein, described execute in request includes the position of the mark, next program segment of next terminal in code data Business datum needed for information and the next program segment of execution;
When having detected the presence of execution request processing failure, if the terminal for executing request processing failure is to initiate in a synchronous mode , the program segment for executing request failure is corresponded to execute by the execution session data that specified terminal retains before;
If the terminal for executing request processing failure is initiated in an asynchronous mode, failure result is fed back to by specified terminal Asynchronous object.
5. a kind of execution equipment of program, which is characterized in that applied to include multiple terminals system in, the execution equipment packet It includes:
Sending module, each terminal for being sent to complete code data set in system;Wherein, the complete code data Code data needed for concentration is successively stored with each terminal according to processing sequence;
First processing module executes the program for belonging to itself in code data by current terminal for being directed to each terminal Section, and identify terminal corresponding to next program segment, generation executes request;
Sending module is identified for being sent to the terminal identified for request is executed by current terminal with will pass through Terminal executes the program segment for belonging to itself;Wherein, the mark for including next terminal in request, the next program segment of executing is in generation Business datum needed for location information and the next program segment of execution in code data;Second processing module, being used for ought currently eventually Termination, which receives, executes request, determines terminal belonging to the program segment next to be executed;
If it is determined that terminal be not itself, then generate corresponding execution request and be sent to identified terminal
If current tupe is synchronous mode, retain the execution session data of current terminal, and suspend down-stream The execution of section;
If current tupe is asynchronous mode, the program segment for being not belonging to itself is skipped by current terminal, is executed The subsequent program segment for belonging to itself, and retain an asynchronous object.
6. executing equipment as claimed in claim 5, which is characterized in that further include: third processing module, for working as current end It is pending based on the execution request received by current terminal when termination receives the request of the execution from other terminals Location information of the program segment in code data and pending program segment execute needed for business datum;
The program segment needed to be implemented is obtained according to the location information of acquisition, and is obtained according to the business datum execution executed in request The program segment taken;And when recognizing the program segment next to be executed during execution, in conjunction with the corresponding program recognized The business datum of section generates to execute and requests to be sent to terminal corresponding to the program segment recognized.
7. a kind of execution equipment of program, which is characterized in that applied to include multiple terminals system in, the execution equipment packet It includes:
Sending module, each terminal for being sent to complete code data set in system;Wherein, the complete code data Code data needed for concentration is successively stored with each terminal according to processing sequence;
First processing module executes the program for belonging to itself in code data by current terminal for being directed to each terminal Section, and identify terminal corresponding to next program segment, generation executes request;
Sending module is identified for being sent to the terminal identified for request is executed by current terminal with will pass through Terminal executes the program segment for belonging to itself;Wherein, the mark for including next terminal in request, the next program segment of executing is in generation Business datum needed for location information and the next program segment of execution in code data;
Fourth processing module is the execution request based on the transmission of other terminals for the treatment process when current terminal and carries out , after current terminal executes the corresponding program segment of completion, other ends of request are executed to transmission by current terminal Hold the operation data after the completion of feedback processing;
If other terminal processes are the treatment processes initiated in a synchronous mode, are eliminated by other terminals and retained execute meeting Data are talked about, and the operation data based on feedback executes affiliated program segment;
If other terminal processes are the treatment processes initiated in an asynchronous mode, the operation data of feedback is deposited by other terminals Storage is in asynchronous object.
8. a kind of execution equipment of program, which is characterized in that applied to include multiple terminals system in, the execution equipment packet It includes:
Sending module, each terminal for being sent to complete code data set in system;Wherein, the complete code data Code data needed for concentration is successively stored with each terminal according to processing sequence;
First processing module executes the program for belonging to itself in code data by current terminal for being directed to each terminal Section, and identify terminal corresponding to next program segment, generation executes request;
Sending module is identified for being sent to the terminal identified for request is executed by current terminal with will pass through Terminal executes the program segment for belonging to itself;Wherein, the mark for including next terminal in request, the next program segment of executing is in generation Business datum needed for location information and the next program segment of execution in code data;
5th processing module, for when detected the presence of execute request processing failure when, if execute request processing failure end End is initiated in a synchronous mode, is asked by the execution session data that specified terminal retains before to execute corresponding execute Seek the program segment of failure;
If the terminal for executing request processing failure is initiated in an asynchronous mode, failure result is fed back to by specified terminal Asynchronous object.
CN201611161422.2A 2016-12-15 2016-12-15 A kind of execution method and apparatus of program Active CN106598599B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611161422.2A CN106598599B (en) 2016-12-15 2016-12-15 A kind of execution method and apparatus of program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611161422.2A CN106598599B (en) 2016-12-15 2016-12-15 A kind of execution method and apparatus of program

Publications (2)

Publication Number Publication Date
CN106598599A CN106598599A (en) 2017-04-26
CN106598599B true CN106598599B (en) 2019-08-27

Family

ID=58801610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611161422.2A Active CN106598599B (en) 2016-12-15 2016-12-15 A kind of execution method and apparatus of program

Country Status (1)

Country Link
CN (1) CN106598599B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144944A (en) * 2018-07-31 2019-01-04 佛山科学技术学院 A kind of program groups bandwidth scheduling method that concurrency performance is optimal
CN111061623B (en) * 2019-07-12 2023-08-22 华控清交信息科技(北京)有限公司 Method, device, middle server, storage medium and system for debugging program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1211005A (en) * 1997-03-04 1999-03-17 松下电器产业株式会社 Processor capable of high effective actuating asynchronous event mission in multiple asynchronous missions
CN1601468A (en) * 2003-09-25 2005-03-30 国际商业机器公司 System and method for loading software on muliple processors
CN105022617A (en) * 2014-04-24 2015-11-04 深圳市并行科技有限公司 Program segment execution switch design plan

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1211005A (en) * 1997-03-04 1999-03-17 松下电器产业株式会社 Processor capable of high effective actuating asynchronous event mission in multiple asynchronous missions
CN1601468A (en) * 2003-09-25 2005-03-30 国际商业机器公司 System and method for loading software on muliple processors
CN105022617A (en) * 2014-04-24 2015-11-04 深圳市并行科技有限公司 Program segment execution switch design plan

Also Published As

Publication number Publication date
CN106598599A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN105677469B (en) Timed task execution method and device
US9753783B2 (en) System and method for accelerating mapreduce operation
US10212236B2 (en) Information transmitting method and apparatus in robot operating system
EP3636390B1 (en) Robot cluster scheduling system
CN111726420A (en) Communication method, device, equipment and storage medium based on RPA
CN106598599B (en) A kind of execution method and apparatus of program
CN108833565A (en) A kind of method, apparatus of monitoring server, server and storage medium
CN108401168B (en) Conflict resolution method, device, equipment and storage medium
US7707584B2 (en) Method and apparatus for synchronizing calls in a server and client system
CN106341433A (en) Service system, signal server and intercom server
CN107819855A (en) A kind of message distributing method and device
EP2690560A2 (en) Method of benchmarking the behaviour of a replacement information system with the old system
CN114338584B (en) Message withdraw method and message transmission system
CN108289165B (en) Method and device for realizing camera control based on mobile phone and terminal equipment
CN106850596B (en) Data acquisition system and method
US20220210248A1 (en) Information interaction methods, apparatuses, devices, and systems and storage media
CN109510774B (en) Method for realizing flow control in data synchronization process
CN107506491B (en) OSD data distribution method and device of distributed file system
CN106453573A (en) Method and system for processing CGI request in HTTP server
KR20220086245A (en) Task execution system and mehtod of operating system for vehicle
CN112714181A (en) Data transmission method and device
CN110958240A (en) Message subscription system and method
CN105471646B (en) A kind of implementation method of IEC101 stipulations boss station calling flow dynamic configuration
CN110798512A (en) Centralized data pushing method, intelligent terminal and storage medium
CN109324820B (en) Host updating method, device, equipment and medium

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