CN109284166A - Execute method and device, storage medium, work station, the terminal of program - Google Patents
Execute method and device, storage medium, work station, the terminal of program Download PDFInfo
- Publication number
- CN109284166A CN109284166A CN201710597919.7A CN201710597919A CN109284166A CN 109284166 A CN109284166 A CN 109284166A CN 201710597919 A CN201710597919 A CN 201710597919A CN 109284166 A CN109284166 A CN 109284166A
- Authority
- CN
- China
- Prior art keywords
- program
- shipped
- external
- line program
- system snapshot
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
Abstract
A kind of method and device, storage medium, work station, terminal executing program, it the described method comprises the following steps: dry run line program to be shipped, until the line program to be shipped calls the external call position of external resource for the first time, and system snapshot is generated in the external call position;The system snapshot and usability of program fragments are sent to terminal, so that terminal restores the system snapshot, and executes the line program to be shipped since the external call position, described program segment includes part of the line program to be shipped after the external call position.The efficiency of terminal execution program can be improved in the present invention program, reduces the program volume that terminal needs to be implemented.
Description
Technical field
The present invention relates to field of computer technology, more particularly, to a kind of method and device for executing program, storage medium,
Work station, terminal.
Background technique
When running the game item of large program or large size, a large amount of initialization generations are frequently included in the program initial stage
Code, initial code compatible can be suitable for different types of terminal.
In the prior art, each terminal requires to first carry out the initial code in program, and then executes in program
Remainder, efficiency are to be improved.
Summary of the invention
The technical problem to be solved by the present invention is to provide a kind of method and devices for executing program, storage medium, work station, end
The efficiency of terminal execution program can be improved in end, reduces the program volume that terminal needs to be implemented.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of method for executing program, comprising the following steps: mould
Quasi- operation line program to be shipped, until the line program to be shipped calls the external call position of external resource for the first time, and described outer
Portion's calling station generates system snapshot;The system snapshot and usability of program fragments are sent to terminal, so that terminal restores the system
Snapshot, and the line program to be shipped is executed since the external call position, described program segment includes the stroke to be shipped
Part of the sequence after the external call position.
Optionally, by virtual machine dry run line program to be shipped, until the line program to be shipped calls external provide for the first time
The external call position in source, and system snapshot is generated in the external call position.
Optionally, dry run line program to be shipped, until the line program to be shipped calls the outer of external resource for the first time
Portion's calling station includes: dry run line program to be shipped, until determining the first API Calls instruction in line program to be shipped, institute
API Calls instruction is stated for calling external resource;Using the position of the first API Calls instruction as the line program to be shipped
External call position.
Optionally, the external resource is external dynamic data, the external dynamic data be described in the dry run to
The external resource changed is possible to during operation program.
Optionally, the system snapshot includes memory mapping and executes scene.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of method for executing program, comprising the following steps: from
Work station receives system snapshot and usability of program fragments;Restore the system snapshot, and executes described program segment;Wherein, described
System snapshot is that line program to be shipped generates when being modeled operation to external call position, the external call position be it is described to
Operation program calls the position of external resource for the first time;Described program segment includes the line program to be shipped in the external call position
Part after setting.
Optionally, the external resource is external dynamic data, the external dynamic data be described in the dry run to
The external resource changed is possible to during operation program.
Optionally, the system snapshot includes memory mapping and executes scene.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of device for executing program, comprising: dry run mould
Block is suitable for dry run line program to be shipped, until the line program to be shipped calls the external call position of external resource for the first time, and
System snapshot is generated in the external call position;Sending module is suitable for sending the system snapshot and usability of program fragments to terminal,
So that terminal restores the system snapshot, and the line program to be shipped, described program are executed since the external call position
Segment includes part of the line program to be shipped after the external call position.
Optionally, the dry run module is by virtual machine dry run line program to be shipped, until the stroke to be shipped
Sequence calls the external call position of external resource for the first time, and generates system snapshot in the external call position.
Optionally, the dry run module includes: and instructs to determine submodule, is suitable for dry run line program to be shipped, directly
To the first API Calls instruction determined in line program to be shipped, the API Calls instruction is for calling external resource;Position is true
Stator modules, suitable for using the position of the first API Calls instruction as the external call position of the line program to be shipped.
Optionally, the external resource is external dynamic data, the external dynamic data be described in the dry run to
The external resource changed is possible to during operation program.
Optionally, the system snapshot includes memory mapping and executes scene.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of device for executing program, comprising: receiving module,
Suitable for receiving system snapshot and usability of program fragments from work station;Recovery module is suitable for restoring the system snapshot, and described in execution
Usability of program fragments;Wherein, the system snapshot is that line program to be shipped generates when being modeled operation to external call position, described outer
Portion's calling station is the position that the line program to be shipped calls external resource for the first time;Described program segment includes the stroke to be shipped
Part of the sequence after the external call position.
Optionally, the external resource is external dynamic data, the external dynamic data be described in the dry run to
The external resource changed is possible to during operation program.
Optionally, the system snapshot includes memory mapping and executes scene.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of computer readable storage medium, it is stored thereon with
Computer instruction, when the computer instruction is run the step of the method for execution above-mentioned executive programs.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of work station, including memory and processor, it is described
The computer instruction that can be run on the processor is stored on memory, the processor runs the computer instruction
The step of method of Shi Zhihang above-mentioned executive programs.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of terminal, including memory and processor, it is described to deposit
The computer instruction that can be run on the processor is stored on reservoir, which is characterized in that described in the processor operation
The step of method of above-mentioned executive programs is executed when computer instruction.
Compared with prior art, the technical solution of the embodiment of the present invention has the advantages that
In embodiments of the present invention, dry run line program to be shipped, until the line program to be shipped calls external provide for the first time
The external call position in source, and system snapshot is generated in the external call position;The system snapshot and journey are sent to terminal
Sequence segment so that terminal restores the system snapshot, and executes the line program to be shipped, institute since the external call position
Stating usability of program fragments includes part of the line program to be shipped after the external call position.Using the side of the embodiment of the present invention
Case can generate system snapshot in the position that external call occurs for the first time, and send out to terminal by dry run line program to be shipped
Usability of program fragments is sent, so that terminal after recovery system snapshot, obtains identical memory mapping and executes scene, so as to only hold
Remainder of the row line program to be shipped after the external call position can be with compared to executing complete line program to be shipped
Speed and efficiency that terminal executes are improved, the program volume that terminal needs to be implemented is reduced.
Further, the external resource can be external dynamic data, and the external dynamic data are in dry run
The external resource that may be changed during the line program to be shipped.In embodiments of the present invention, due in dry run
During external static data content it is known and be not change, therefore can be to the external static data
It is simulated, is carried out without the program after the external call position for calling the external static data for the first time is left to terminal
Operation can preferably improve the speed and efficiency of terminal execution, reduce the program volume that terminal needs to be implemented.
Further, the external call position of the line program to be shipped can be true according to the position of first API Calls instruction
Fixed, it is more accurately, lower for the dependency degree of user experience compared to artificial default external call position.
Further, by virtual machine dry run line program to be shipped, until the line program to be shipped calls external provide for the first time
The external call position in source, and system snapshot is generated in the external call position, isolation ring can be operated in by virtual machine
Characteristic in border, stopping executes at the instruction for calling external resource automatically, compared to tune outside artificial default or manual confirmation
It is more accurate and more efficient with position.
Detailed description of the invention
Fig. 1 is a kind of flow chart for the method for executing program in the embodiment of the present invention;
Fig. 2 is a kind of flow chart of specific embodiment of step S11 in Fig. 1;
Fig. 3 is a kind of data flow diagram for the method for executing program in the embodiment of the present invention;
Fig. 4 is the flow chart of another method for executing program in the embodiment of the present invention;
Fig. 5 is the data flow diagram of another method for executing program in the embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram for the device for executing program in the embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of specific embodiment of dry run module 61 in Fig. 6;
Fig. 8 is the structural schematic diagram of another device for executing program in the embodiment of the present invention.
Specific embodiment
In the prior art, each terminal requires to first carry out a large amount of initial code in program, and then executes program
In remainder, efficiency is to be improved.
The present inventor has found after study, initial code execute after result for different terminals often all
Determining, and have it is predictable, is executed respectively by each terminal result in calculating power waste.If in generation, will be initialized
Result after code execution continues to execute the remainder in program, practical implementing result is equivalent to execute original as original state
The complete routine comprising initial code to begin.
In embodiments of the present invention, dry run line program to be shipped, until the line program to be shipped calls external provide for the first time
The external call position in source, and system snapshot is generated in the external call position;The system snapshot and journey are sent to terminal
Sequence segment so that terminal restores the system snapshot, and executes the line program to be shipped, institute since the external call position
Stating usability of program fragments includes part of the line program to be shipped after the external call position.Using the side of the embodiment of the present invention
Case can generate system snapshot in the position that external call occurs for the first time, and send out to terminal by dry run line program to be shipped
Usability of program fragments is sent, so that terminal after recovery system snapshot, obtains identical memory mapping and executes scene, so as to only hold
Remainder of the row line program to be shipped after the external call position can be with compared to executing complete line program to be shipped
Speed and efficiency that terminal executes are improved, the program volume that terminal needs to be implemented is reduced.
It is understandable to enable above-mentioned purpose of the invention, feature and beneficial effect to become apparent, with reference to the accompanying drawing to this
The specific embodiment of invention is described in detail.
Referring to Fig.1, Fig. 1 is a kind of flow chart for the method for executing program in the embodiment of the present invention.The execution program
Method can be adapted for work station side, may include step S11 to step S12:
Step S11: dry run line program to be shipped, until the line program to be shipped calls the external of external resource to adjust for the first time
System snapshot is generated with position, and in the external call position;
Step S12: sending the system snapshot and usability of program fragments to terminal, so that terminal restores the system snapshot, and
The line program to be shipped is executed since the external call position, described program segment includes the line program to be shipped described
Part after external call position.
In the specific implementation of step S11, work station end can be by dry run line program to be shipped, until described to be shipped
Line program calls the external call position of external resource for the first time, so that it is determined that only dry run initial code.Specifically,
For the program namely initial code before the external call position, no matter carried out at work station end or each terminal
Operation, obtained result are all consistent;For the program after the external call position, due to need to external resource into
Row calls, influence of the obtained result by running environment, it is possible to different.Therefore, external call position described in dry run
Program before is more conducive to improve the execution efficiency of terminal.
Specifically, the external resource may include external static data and external dynamic data.Wherein, the outside is quiet
The external resource that state data can not change during being the line program to be shipped described in dry run, for example, resource text
Part can since the content of external static data during dry run is known and is not change
To be simulated to the external static data.During the external dynamic data are the line program to be shipped described in dry run
The external resource that may be changed, for example, current time of hardware system call camera, input/output (Input/
Output, I/O) control etc., since the content of external dynamic data during dry run may change, also
It is considered as unknowable, therefore, it is difficult to simulate to the external dynamic data.
Further, the external resource can be external dynamic data, so that dry run line program to be shipped is to described
Line program to be shipped calls the external call position of external dynamic data for the first time, and in the external call position of the external dynamic data
Set generation system snapshot.
Specifically, the program before the external call position of the external dynamic data is called in dry run for the first time, is more had
Help improve the execution efficiency of terminal.Since the content of external static data during dry run is known and is
It does not change, therefore the external static data can be simulated, without the external static number will be called for the first time
According to external call position after program be left to terminal and run, can preferably improve the speed and effect of terminal execution
Rate reduces the program volume that terminal needs to be implemented.
Further, the external dynamic data can change in simulating line program to be shipped, generation is unforeseen
The external resource of change.Specifically, if it is described change anticipated that, still can by the result after change into
Row simulation, obtain the precognition as a result, to avoid by call for the first time the external dynamic data external call position it
Program afterwards is left to terminal and is run, and can preferably improve the speed and efficiency of terminal execution.
Specifically, work station end can generate system snapshot in the external call position.
Wherein, the content of the system snapshot may include memory mapping and execute scene (context).Further
Ground, the memory mapping are used to indicate the data acquisition system of internal storage state;The execution scene is also known as context, is used to indicate one
A thread may include the information such as storehouse and buffer status in the data acquisition system of sometime operating status.
Referring to Fig. 2 shows step S11 a kind of specific embodiment, the dry run line program to be shipped, until institute
Stating line program to be shipped and calling the external call position of external resource for the first time may include step S21 to step S22:
Step S21: dry run line program to be shipped, until determining the first API Calls instruction in line program to be shipped, institute
API Calls instruction is stated for calling external resource;
Step S22: using the position of the first API Calls instruction as the external call position of the line program to be shipped.
In specific implementation, by calling application programming interface (Application Programming
Interface, API), realization between application program and hardware can be made to interact, to call external resource.
Specifically, for program namely initial code before the instruction of first API Calls, no matter at work station end
Or each terminal is run, and obtained result is all often consistent;Program after being instructed for first API Calls,
Due to needing and realizing between hardware to interact when executing API Calls instruction, in the knot that work station end or each terminal obtain
Fruit is influenced by running environment, it is possible to different.Therefore, the position that first API Calls can be instructed is as described to be shipped
The external call position of line program.
It, can be by virtual machine dry run line program to be shipped, directly in the specific implementation of step S11 with continued reference to Fig. 1
Call the external call position of external resource for the first time to the line program to be shipped, and fast in external call position generation system
According to.The virtual machine can be external in work station, or operate in work station end.
It is understood that being simulated by software since virtual machine (Virtual Machine, VM) is with complete hard
Part system function, operate in computer system in isolation environment, so virtual machine can not execute the finger for calling external resource
It enables, such as API Calls instruction.It when by virtual machine dry run line program to be shipped, and include to call in line program to be shipped
When the instruction of external resource, virtual machine will be automatically stopped execution at the instruction.Outside artificial default or manual confirmation
Calling station, it is more accurate and more efficient.
In the specific implementation of step S12, work station creates usability of program fragments according to the external call position, and by institute
It states system snapshot and usability of program fragments is sent to terminal.Wherein, described program segment includes the line program to be shipped in the outside
Part after calling station.Usability of program fragments can individually be sent to terminal, can also be sent in entire line program to be shipped
Terminal.For example, entire line program to be shipped can be sent to terminal in a change case, be determined since where by terminal
Execute, executed since external call position if system snapshot is successfully recovered, if system snapshot restore it is unsuccessful if from
The beginning of line program to be shipped starts to execute.
Specifically, when by manually presetting external call position, to can also be adopted when predefining initial code
Program code is manually changed, initial code is all concluded into single special function, and then operation should in work station side
Special function is to execute initial code.
Such as the special function is named as static_initialize, then in the prior art, each terminal requires
The initial code in program is first carried out, the code after the initial code that reruns is equivalent to operation following procedure:
In embodiments of the present invention, system snapshot is generated in the position that external call occurs for the first time due to work station side, because
This terminal can attempt recovery system snapshot, if be successfully recovered, internal storage state be initialized using system snapshot, if do not looked for
To system snapshot or fail to be successfully recovered, then execute the initial code in program, is i.e. execution static_intialize is complete
At initialization, it is equivalent to operation following procedure:
It is understood that using virtual machine dry run line program to be shipped, and at the instruction for calling external resource
It is automatically stopped execution, artificial change program code can be exempted and all concludes initial code into single special function
Operation, improve efficiency.
Specifically, described program segment can be by the instant compiler (Just-In-Time in work station
Compiler, JIT Compiler) creation.
Wherein, JIT compiler can be according to target platform characteristic, by code conversion to be converted in pairs for target platform
The highest code form of execution efficiency.Wherein, target platform characteristic for example may include the JavaScript language version of browser
This, if assembler language (Web Assembly) of supported web page etc..
Further, terminal can be according to the system snapshot and usability of program fragments that work station is sent, by restoring the system
Snapshot and execution usability of program fragments, realization execute the line program to be shipped since the external call position.
In embodiments of the present invention, by dry run line program to be shipped external call can occur for the first time for work station
Position generate system snapshot, and send usability of program fragments to terminal, so that terminal is after recovery system snapshot, obtain in identical
It deposits image and executes scene, so as to only execute remainder of the line program to be shipped after the external call position, phase
Than the speed of terminal execution can be improved in executing complete line program to be shipped, the program volume that terminal needs to be implemented is reduced.
Fig. 3 is a kind of data flow diagram for the method for executing program in the embodiment of the present invention, and the method for executing program can
To include step S31 to step S34:
Step S31: 31 dry run of work station line program to be shipped, until determining the first API tune in line program to be shipped
With instruction;
Step S32: work station 31 adjusts the position that the first API Calls instruct as the external of the line program to be shipped
Use position;
Step S33: work station 31 generates system snapshot in the external call position;
Step S34: work station 31 sends the system snapshot and usability of program fragments to terminal 32.
More detailed contents of method about the execution program shown in Fig. 3 please refer to above and Fig. 1 to Fig. 2 shows pass
In the associated description for the method for executing program, details are not described herein again.
It is the flow chart of another method for executing program in the embodiment of the present invention referring to Fig. 4, Fig. 4.The another kind is held
The method of line program can be used for terminal side, may include step S41 to step S42, is illustrated below to each step.
In step S41, system snapshot and usability of program fragments are received from work station.
Specifically, the system snapshot, which can be, generates when line program to be shipped is modeled operation to external call position,
The external call position is the position that the line program to be shipped calls external resource for the first time.Further, the system snapshot
It is generated when can be line program to be shipped by virtual machine dry run to external call position.
Described program segment includes part of the line program to be shipped after the external call position.It can be by work
The of JIT compiler creation in standing
In step S42, restore the system snapshot, and executes described program segment.
Specifically, the system snapshot may include memory mapping and execute scene.Terminal can be by being loaded into memory
Image and restore execute scene operation recovery system snapshot, thus obtain execute initial code after internal storage state with
And execute presence states.
Further, terminal can execute usability of program fragments.Compared to complete line program to be shipped is executed, terminal can only be held
Remainder of the row line program to be shipped after the external call position, can be improved the speed of terminal execution, reduces terminal
The program volume needed to be implemented.
Fig. 5 is the data flow diagram of another method for executing program in the embodiment of the present invention, another execution program
Method may include step S51 to step S53:
Step S51: terminal 52 receives system snapshot and usability of program fragments from work station 51;
Step S52: terminal 52 restores the system snapshot;
Step S53: terminal 52 executes described program segment.
More detailed contents about another method for executing program shown in Fig. 4 to Fig. 5 please refer to above and Fig. 1 extremely
The associated description about the method for executing program shown in Fig. 3, details are not described herein again.
It is a kind of structural schematic diagram for the device for executing program in the embodiment of the present invention referring to Fig. 6, Fig. 6.The execution journey
The device of sequence may include dry run module 61 and sending module 62.
Wherein, the dry run module 61 is suitable for dry run line program to be shipped, until the line program to be shipped is for the first time
The external call position of external resource is called, and generates system snapshot in the external call position.
The sending module 62 is suitable for sending the system snapshot and usability of program fragments to terminal, so that described in terminal recovery
System snapshot, and the line program to be shipped is executed since the external call position, described program segment includes described to be shipped
Part of the line program after the external call position.
Further, the dry run module is by virtual machine dry run line program to be shipped, until described wait run
Program calls the external call position of external resource for the first time, and generates system snapshot in the external call position.
Fig. 7 is a kind of structural schematic diagram of specific embodiment of dry run module 61 in Fig. 6, the dry run mould
Block 61 may include instructing determining submodule 611 and position determination submodule 612.
Wherein, described instruction determines submodule 611, is suitable for dry run line program to be shipped, until determining in stroke to be shipped
First API Calls instruction in sequence, the API Calls instruction is for calling external resource.
The position determination submodule 612, suitable for using the position of the first API Calls instruction as the stroke to be shipped
The external call position of sequence.
Further, the external resource is external dynamic data, and the external dynamic data are described in the dry run
The external resource changed is possible to during line program to be shipped.
Further, the system snapshot includes memory mapping and executes scene.
The embodiment of the invention also provides another devices for executing program, and structural schematic diagram is referring to Fig. 8.It is described another
The device that kind executes program may include receiving module 81 and recovery module 82.
Wherein, the receiving module 81 is suitable for receiving system snapshot and usability of program fragments from work station.
The recovery module 82 is suitable for restoring the system snapshot, and executes described program segment.
Wherein, the system snapshot is that line program to be shipped generates when being modeled operation to external call position, described outer
Portion's calling station is the position that the line program to be shipped calls external resource for the first time;Described program segment includes the stroke to be shipped
Part of the sequence after the external call position.
Further, the external resource is external dynamic data, and the external dynamic data are described in the dry run
The external resource changed is possible to during line program to be shipped.
Further, the system snapshot includes memory mapping and executes scene.
More detailed contents of device about the execution program please refer to above and shown in Fig. 1 to Fig. 5 about execution
The associated description of the method for program, details are not described herein again.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer instruction, described
The step of method of above-mentioned executive programs is executed when computer instruction is run.The computer readable storage medium can be light
Disk, mechanical hard disk, solid state hard disk etc..The computer readable storage medium can be used for work station side.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer instruction, described
The step of method of above-mentioned executive programs is executed when computer instruction is run.The computer readable storage medium can be light
Disk, mechanical hard disk, solid state hard disk etc..The computer readable storage medium can be used for terminal side.
The embodiment of the invention also provides a kind of work station, including memory and processor, it is stored on the memory
The computer instruction that can be run on the processor, the processor execute above-mentioned execution when running the computer instruction
The step of method of program.
The work station may include the computer with information and image processing function, the terminating machine for being connected to server
Or server, such as the work station of software development, and it is deployed in the server in internet cloud.
The embodiment of the invention also provides a kind of terminal, including memory and processor, energy is stored on the memory
Enough computer instructions run on the processor, the processor execute above-mentioned execution journey when running the computer instruction
The step of method of sequence.
The terminal may include the various terminal equipments such as browser, computer, smart phone, tablet computer.
It should be noted that the line program to be shipped in the embodiment of the present invention can be various programs appropriate, it is preferable that can
To be games.
Although present disclosure is as above, present invention is not limited to this.Anyone skilled in the art are not departing from this
It in the spirit and scope of invention, can make various changes or modifications, therefore protection scope of the present invention should be with claim institute
Subject to the range of restriction.
Claims (20)
1. a kind of method for executing program, which comprises the following steps:
Dry run line program to be shipped, until the line program to be shipped calls the external call position of external resource for the first time, and
The external call position generates system snapshot;
The system snapshot and usability of program fragments are sent to terminal, so that terminal restores the system snapshot, and is adjusted from the outside
Started to execute the line program to be shipped with position, described program segment includes the line program to be shipped in the external call position
Part later.
2. the method according to claim 1 for executing program, which is characterized in that pass through virtual machine dry run stroke to be shipped
Sequence until the line program to be shipped calls the external call position of external resource for the first time, and is generated in the external call position
System snapshot.
3. the method according to claim 1 for executing program, which is characterized in that the dry run line program to be shipped, directly
The external call position for calling external resource for the first time to the line program to be shipped includes:
Dry run line program to be shipped, until determining the first API Calls instruction in line program to be shipped, the API Calls refer to
It enables for calling external resource;
Using the position of the first API Calls instruction as the external call position of the line program to be shipped.
4. the method according to claim 1 for executing program, which is characterized in that the external resource is external dynamic number
According to the external dynamic data are possible to the external resource changed during being the line program to be shipped described in dry run.
5. the method according to claim 1 for executing program, which is characterized in that the system snapshot include memory mapping with
And execute scene.
6. a kind of method for executing program, which comprises the following steps:
System snapshot and usability of program fragments are received from work station;
Restore the system snapshot, and executes described program segment;
Wherein, the system snapshot is that line program to be shipped generates when being modeled operation to external call position, the external tune
It is the position that the line program to be shipped calls external resource for the first time with position;
Described program segment includes part of the line program to be shipped after the external call position.
7. the method according to claim 6 for executing program, which is characterized in that the external resource is external dynamic number
According to the external dynamic data are possible to the external resource changed during being the line program to be shipped described in dry run.
8. the method according to claim 6 for executing program, which is characterized in that the system snapshot include memory mapping with
And execute scene.
9. a kind of device for executing program characterized by comprising
Dry run module is suitable for dry run line program to be shipped, until the line program to be shipped calls external resource for the first time
External call position, and system snapshot is generated in the external call position;
Sending module is suitable for sending the system snapshot and usability of program fragments to terminal, so that terminal restores the system snapshot, and
The line program to be shipped is executed since the external call position, described program segment includes the line program to be shipped described
Part after external call position.
10. the device according to claim 9 for executing program, which is characterized in that the dry run module passes through virtual
Machine dry run line program to be shipped, until the line program to be shipped calls the external call position of external resource for the first time, and in institute
It states external call position and generates system snapshot.
11. the device according to claim 9 for executing program, which is characterized in that the dry run module includes:
It instructs and determines submodule, be suitable for dry run line program to be shipped, until determining the first API Calls in line program to be shipped
Instruction, the API Calls instruction is for calling external resource;
Position determination submodule, suitable for adjusting the position of the first API Calls instruction as the external of the line program to be shipped
Use position.
12. the device according to claim 9 for executing program, which is characterized in that the external resource is external dynamic number
According to the external dynamic data are possible to the external resource changed during being the line program to be shipped described in dry run.
13. the device according to claim 9 for executing program, which is characterized in that the system snapshot includes memory mapping
And execute scene.
14. a kind of device for executing program characterized by comprising
Receiving module is suitable for receiving system snapshot and usability of program fragments from work station;
Recovery module is suitable for restoring the system snapshot, and executes described program segment;
Wherein, the system snapshot is that line program to be shipped generates when being modeled operation to external call position, the external tune
It is the position that the line program to be shipped calls external resource for the first time with position;
Described program segment includes part of the line program to be shipped after the external call position.
15. the device according to claim 14 for executing program, which is characterized in that the external resource is external dynamic number
According to the external dynamic data are possible to the external resource changed during being the line program to be shipped described in dry run.
16. the device according to claim 14 for executing program, which is characterized in that the system snapshot includes memory mapping
And execute scene.
17. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the computer instruction
Perform claim requires the step of any one of 1 to 5 method for executing program when operation.
18. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the computer instruction
Perform claim requires the step of any one of 6 to 8 method for executing program when operation.
19. a kind of work station, including memory and processor, it is stored with and can runs on the processor on the memory
Computer instruction, which is characterized in that perform claim requires any one of 1 to 5 when the processor runs the computer instruction
The step of method for executing program.
20. a kind of terminal, including memory and processor, be stored on the memory to run on the processor
Computer instruction, which is characterized in that perform claim requires any one of 6 to 8 institutes when the processor runs the computer instruction
The step of stating the method for executing program.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710597919.7A CN109284166A (en) | 2017-07-20 | 2017-07-20 | Execute method and device, storage medium, work station, the terminal of program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710597919.7A CN109284166A (en) | 2017-07-20 | 2017-07-20 | Execute method and device, storage medium, work station, the terminal of program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109284166A true CN109284166A (en) | 2019-01-29 |
Family
ID=65184998
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710597919.7A Pending CN109284166A (en) | 2017-07-20 | 2017-07-20 | Execute method and device, storage medium, work station, the terminal of program |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109284166A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114675977A (en) * | 2022-05-30 | 2022-06-28 | 山东科华电力技术有限公司 | Distributed monitoring operation and management system based on power Internet of things |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB0119066D0 (en) * | 2001-08-06 | 2001-09-26 | Ibm | Method and apparatus for suspending a software virtual machine |
| CN101271409A (en) * | 2007-03-23 | 2008-09-24 | 国际商业机器公司 | Apparatus, method and product for migrating logical partitions |
| CN102200920A (en) * | 2010-03-23 | 2011-09-28 | 三星电子株式会社 | Program compiler, program installer and program install method |
| CN103092674A (en) * | 2012-12-14 | 2013-05-08 | 北京伸得纬科技有限公司 | Virtual machine system |
| CN105739930A (en) * | 2016-02-02 | 2016-07-06 | 华为技术有限公司 | Storage framework as well as initialization method, data storage method and data storage and management apparatus therefor |
| CN106648827A (en) * | 2016-09-20 | 2017-05-10 | 国云科技股份有限公司 | A Method of Adding Virtual Machine Resources Online |
-
2017
- 2017-07-20 CN CN201710597919.7A patent/CN109284166A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB0119066D0 (en) * | 2001-08-06 | 2001-09-26 | Ibm | Method and apparatus for suspending a software virtual machine |
| CN101271409A (en) * | 2007-03-23 | 2008-09-24 | 国际商业机器公司 | Apparatus, method and product for migrating logical partitions |
| CN102200920A (en) * | 2010-03-23 | 2011-09-28 | 三星电子株式会社 | Program compiler, program installer and program install method |
| CN103092674A (en) * | 2012-12-14 | 2013-05-08 | 北京伸得纬科技有限公司 | Virtual machine system |
| CN105739930A (en) * | 2016-02-02 | 2016-07-06 | 华为技术有限公司 | Storage framework as well as initialization method, data storage method and data storage and management apparatus therefor |
| CN106648827A (en) * | 2016-09-20 | 2017-05-10 | 国云科技股份有限公司 | A Method of Adding Virtual Machine Resources Online |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114675977A (en) * | 2022-05-30 | 2022-06-28 | 山东科华电力技术有限公司 | Distributed monitoring operation and management system based on power Internet of things |
| CN114675977B (en) * | 2022-05-30 | 2022-08-23 | 山东科华电力技术有限公司 | Distributed monitoring operation and management system based on power Internet of things |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113312037B (en) | Data processing methods, devices, equipment and storage media applied to microservices | |
| CN103995748B (en) | The task processing method and system of intelligent terminal | |
| US20200159924A1 (en) | Protecting a machine learning model | |
| CN109697121B (en) | Method, apparatus and computer readable medium for allocating processing resources to applications | |
| CN110750255A (en) | Applet rendering method and device | |
| CN103927193B (en) | Loading method, service end virtual machine during the migration operation of java application function | |
| US11886302B1 (en) | System and method for execution of applications in a container | |
| CN110659246A (en) | Container-based file mounting method, device and electronic device | |
| US20180121220A1 (en) | Gpu simulation method | |
| WO2017219526A1 (en) | Method for using graphic file format and storage device | |
| CN111857695A (en) | Software project processing method, device, equipment and storage medium | |
| CN114416295A (en) | Application control method, device, equipment, medium and program product | |
| CN105955731A (en) | Method and system for quickly compiling mobile game | |
| KR20210040333A (en) | Request processing method, apparatus, device and computer storage medium | |
| CN111625317A (en) | A container cloud construction method and related device for a business system | |
| CN110795162A (en) | Method and device for generating container mirror image file | |
| US11379201B2 (en) | Wrapping method, registration method, device, and rendering apparatus | |
| CN109284166A (en) | Execute method and device, storage medium, work station, the terminal of program | |
| CN108021445A (en) | Memory Optimize Method, device, system and computer-readable recording medium | |
| TWI874169B (en) | Method and apparatus of compiling a deep learning model, a non-transitory computer readable medium | |
| CN116434040B (en) | RISC-V (reduced instruction set computer-virtual machine) architecture-oriented real-time target detection method and system | |
| CN112925586A (en) | Applet routing method, device, computer equipment and storage medium | |
| US20180373512A1 (en) | Method and device for simulating synchronous blocking in asynchronous environment, storage medium, server and terminal | |
| CN114168150B (en) | Application compilation method, device, electronic device and storage medium | |
| CN107957902A (en) | A kind of high in the clouds Android running environment construction methods based on Unikernel |
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 | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190129 |