CN107145372A - information generating method and device - Google Patents

information generating method and device Download PDF

Info

Publication number
CN107145372A
CN107145372A CN201710320044.6A CN201710320044A CN107145372A CN 107145372 A CN107145372 A CN 107145372A CN 201710320044 A CN201710320044 A CN 201710320044A CN 107145372 A CN107145372 A CN 107145372A
Authority
CN
China
Prior art keywords
subprocess
component
information
host process
module information
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
Application number
CN201710320044.6A
Other languages
Chinese (zh)
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710320044.6A priority Critical patent/CN107145372A/en
Publication of CN107145372A publication Critical patent/CN107145372A/en
Pending legal-status Critical Current

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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

This application discloses information generating method and device.One embodiment of this method includes:Receive information generation instruction, wherein, each component that information generation instruction includes being used to generate in the module information of at least one component of information, at least one component is that the server for storing the component is packaged and generated by pair data corresponding with the component and function;Host process and at least one subprocess are created that, wherein, at least one subprocess is used to loading and performing at least one component, and host process is used to control at least one subprocess;Module information based at least one component, controls at least one subprocess to load at least one component by host process;At least one component is performed by least one subprocess, information is generated.This embodiment improves the success rate of generation information.

Description

Information generating method and device
Technical field
The application is related to field of computer technology, and in particular to Internet technical field, more particularly to information generating method And device.
Background technology
With the fast development of business event, the system for generating the information related to business event is also more and more multiple It is miscellaneous.Under normal circumstances, the system can include multiple servers, each server be used for store different calculating sections data and Mainly interacted between function, these servers using means such as message mechanism or RMIs, with realization pair The data and function of each server storage are calculated, and generate information.
However, direct to storage data on the server and function using message mechanism or RMI mechanism Data and function can be made to produce multiple versions during being calculated, the problem of version conflict thus occurs, cause life Success rate into information is relatively low.
The content of the invention
The purpose of the application is to propose a kind of improved information generating method and device, to solve background above technology department Divide the technical problem mentioned.
In a first aspect, the embodiment of the present application provides a kind of information generating method, this method includes:Receive information generation refers to Order, wherein, information generation instruction includes being used to generate in the module information of at least one component of information, at least one component Each component is that the server for storing the component is packaged and generated by pair data corresponding with the component and function; Host process and at least one subprocess are created that, wherein, at least one subprocess is used to loading and performing at least one component, main Process is used to control at least one subprocess;Module information based at least one component, at least one is controlled by host process Subprocess loads at least one component;At least one component is performed by least one subprocess, information is generated.
In certain embodiments, the quantity of at least one subprocess and the quantity of at least one component are identical;And be based on The module information of at least one component, controls at least one subprocess to load at least one component by host process, including:Pass through Host process is by each subprocess in each module information in the module information of at least one component and at least one subprocess Match one by one, and each module information is sent to the subprocess of pairing;For each subprocess at least one subprocess, Based on the module information matched with the subprocess, loaded by the subprocess indicated by the module information matched with the subprocess Component.
In certain embodiments, this method also includes:For each subprocess at least one subprocess, pass through the son Process obtains the state of the component indicated by the module information matched with the subprocess, wherein, the state of component includes following Meaning one:In loading, load in completion, loading failure, execution, run succeeded, perform failure.
In certain embodiments, this method also includes:If with the component indicated by the module information of subprocess pairing State is loading failure, then reloads the component indicated by the module information matched with the subprocess by the subprocess.
In certain embodiments, this method also includes:If with the component indicated by the module information of subprocess pairing State is to perform failure, then re-executes the component indicated by the module information matched with the subprocess by the subprocess.
In certain embodiments, this method also includes:If with the component indicated by the module information of subprocess pairing State is to perform completion, then controls the subprocess to exit by host process.
In certain embodiments, this method also includes:For each subprocess at least one subprocess, if the son enters The period that journey is created between time and current time is more than preset time period, then controls the subprocess to move back by host process Go out.
In certain embodiments, this method also includes:For each subprocess at least one subprocess, in response to connecing Receive for indicating the instruction that the subprocess is exited, then control the subprocess to exit by host process.
In certain embodiments, handed between host process and at least one subprocess by any one following mode Mutually:Shared drive, pipeline, socket.
Second aspect, the embodiment of the present application provides a kind of information generation device, and the device includes:Receiving unit, configuration Generate and instruct for receive information, wherein, information generation instruction includes being used to generate the component letter of at least one component of information Each component in breath, at least one component is that the server for storing the component passes through pair data corresponding with the component and a letter Number is packaged and generated;Creating unit, is configured to be created that host process and at least one subprocess, wherein, at least one Individual subprocess is used to loading and performing at least one component, and host process is used to control at least one subprocess;Loading unit, configuration For the module information based at least one component, at least one subprocess is controlled to load at least one component by host process; Execution unit, is configured at least one subprocess and performs at least one component, generate information.
In certain embodiments, the quantity of at least one subprocess and the quantity of at least one component are identical;And loading Unit, including:With sub-unit, it is configured to host process and believes each component in the module information of at least one component Breath is matched one by one with each subprocess at least one subprocess, and each module information is sent to the subprocess of pairing; Subelement is loaded, is configured to for each subprocess at least one subprocess, based on the component matched with the subprocess Information, the component indicated by the module information matched with the subprocess is loaded by the subprocess.
In certain embodiments, the device also includes:Acquiring unit, is configured to for every at least one subprocess Individual subprocess, the state of the component indicated by the module information matched with the subprocess is obtained by the subprocess, wherein, component State include following any one:In loading, load in completion, loading failure, execution, run succeeded, perform failure.
In certain embodiments, the device also includes:Unit is reloaded, if being configured to the group matched with the subprocess The state of component indicated by part information is loading failure, then reloads the component matched with the subprocess by the subprocess Component indicated by information.
In certain embodiments, the device also includes:Unit is re-executed, if being configured to the group matched with the subprocess The state of component indicated by part information is to perform failure, then re-executes the component matched with the subprocess by the subprocess Component indicated by information.
In certain embodiments, the device also includes:First exits unit, if being configured to the group matched with the subprocess The state of component indicated by part information is to perform completion, then controls the subprocess to exit by host process.
In certain embodiments, the device also includes:Second exits unit, is configured to at least one subprocess Each subprocess, if the subprocess is created period between time and current time and is more than preset time period, pass through Host process controls the subprocess to exit.
In certain embodiments, the device also includes:3rd exits unit, is configured to at least one subprocess Each subprocess, in response to receiving for indicating the instruction that the subprocess is exited, then the subprocess is controlled by host process Exit.
In certain embodiments, handed between host process and at least one subprocess by any one following mode Mutually:Shared drive, pipeline, socket.
The third aspect, the embodiment of the present application provides a kind of electronic equipment, and the electronic equipment includes:One or more processing Device;Storage device, for storing one or more programs;When one or more programs are executed by one or more processors, make Obtain method of the one or more processors realization as described in any implementation in first aspect.
Fourth aspect, the embodiment of the present application provides a kind of computer-readable recording medium, is stored thereon with computer journey Sequence, realizes the method as described in any implementation in first aspect when the computer program is executed by processor.
Information generating method and device that the embodiment of the present application is provided, after information generation instruction is received, are created first Build out host process and at least one subprocess;The module information at least one component being then based in information generation instruction, leads to Crossing host process controls at least one subprocess to load at least one component;At least one is performed finally by least one subprocess Component, generates information.By the way that data and function are packaged into component, and subprocess is controlled to load and perform group by host process Part, to generate information.The appearance of version conflict problem is avoided, so as to improve the success rate of generation information.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that the embodiment of the present application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow chart of one embodiment of the information generating method according to the application;
Fig. 3 is the flow chart of another embodiment of the information generating method according to the application;
Fig. 4 is the structural representation of one embodiment of the information generation device according to the application;
Fig. 5 is adapted for the structural representation of the computer system of the electronic equipment for realizing the embodiment of the present application.
Embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that, in order to Be easy to description, illustrate only in accompanying drawing to about the related part of invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase Mutually combination.Describe the application in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the exemplary system of the embodiment of the information generating method that can apply the application or information generation device System framework 100.
As shown in figure 1, system architecture 100 can include server 101,102,103, information generation server 104, terminal Equipment 105 and network 106,107.Network 106 is used to carry between server 101,102,103 and information generation server 104 For the medium of communication link.Network 107 is used to provide communication link between terminal device 105 and information generation server 104 Medium.Network 106,107 can include various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can generate server 104 by network 107 and information with using terminal equipment 105 and interact, to receive or send out Send message etc..Terminal device 105 can be various electronic equipments, including but not limited to smart mobile phone, tablet personal computer, it is on knee just Take computer and desktop computer etc..
Information generation server 104 can be to provide the server of various services, and such as information generation server is being received After the information generation instruction sent to terminal device 105, host process and at least one subprocess can be created that first;Afterwards At least one subprocess is controlled to load at least one component by host process;Then at least one is performed by least one subprocess Individual component, generates information;Finally the information to generation is stored or fed back to terminal device 105.
Server 101,102,103 can be the server for storing different components respectively.Wherein, server 101,102, 103 can be packaged with formation component by pair data corresponding with component and function.
It should be noted that the information generating method that the embodiment of the present application is provided is general by information generation server 104 Perform, correspondingly, information generation device is generally positioned in information generation server 104.Information generates server 104 The server or virtual server (i.e. virtual machine) being physically present, this implementation is to this without specific restriction.
It should be understood that the number of the server, information generation server, terminal device and network in Fig. 1 is only signal Property.According to needs are realized, can have any number of server, information generation server, terminal device and network.
With continued reference to Fig. 2, it illustrates the flow 200 of one embodiment of the information generating method according to the application.Letter Generation method is ceased, is comprised the following steps:
Step 201, receive information generation instruction.
In the present embodiment, electronic equipment (such as information generation clothes shown in Fig. 1 of information generating method operation thereon It is engaged in device 104) can be by wired connection mode or radio connection from client (such as terminal device shown in Fig. 1 105) information generation instruction is obtained.Wherein, information generation instruction can include being used to generate the group of at least one component of information Part information.Module information can include the information such as the entrance class and entry method of component.
In the present embodiment, different server (such as Fig. 1 institutes can be stored in for generating each component of information The server 101 that shows, 102,103) in, be that the server of storage assembly passes through pair data corresponding with component and function is carried out Encapsulate and generate.Here, encapsulate, i.e., the attribute of hidden object and realize details, only external disclosure interface, control is in a program The access level of reading and the modification of attribute;Abstract obtained data and behavior (or function) are combined, one are formed organically It is overall, that is, data are organically combined with the source code of peration data, formed " class ".Wherein, data and function be all It is the member of class.
Step 202, host process and at least one subprocess are created that.
In the present embodiment, after information generation instruction is received, electronic equipment can be created that host process and at least One subprocess.Wherein, at least one subprocess can be used for loading and perform at least one component, and host process can be used for control Make at least one subprocess.
In the present embodiment, electronic equipment can create host process and at least one subprocess in several ways.As Example, electronic equipment can go out host process and at least one subprocess by fock function creations.Wherein, fork functions can lead to The system of mistake calls establishment one and the substantially identical process of original process.One process is called after fork functions, and system is first To new course allocation resource, such as space of data storage and code;Then all values of original process are all copied to In new new process, only a small number of values are different from the value of original process.
Step 203, the module information based at least one component, controls at least one subprocess to be loaded onto by host process A few component.
In the present embodiment, the module information of at least one component in instruction is generated based on information, electronic equipment can be with At least one subprocess is controlled to load at least one component by host process.Here, loading is exactly the server storage assembly In component be transferred in the internal memory of electronic equipment.Under normal circumstances, subprocess can pass through a java (object-oriented programming language Speech) reflex mechanism completes the loading of component.
Java reflex mechanisms are in running status, for any one class, can to know all properties of this class And method;For any one object, its any means and attribute can be called;This dynamic access information and dynamic The function of object method is called to be referred to as the reflex mechanism of java language.Java reflex mechanisms mainly provide following functions:In fortune The class belonging to any one object is judged during row;Operationally construct the object of any one class;Operationally judge any one Member variable and method that individual class has;The method for operationally calling any one object;Generate dynamic proxy.
In the present embodiment, host process can be primarily based on the quantity of the component for generating information, determine subprocess Startup quantity;Then control a number of subprocess to start, and the module information of the component for generating information is sent To the subprocess having been turned on.The subprocess having been turned on can be searched first according to the module information for the component for being used to generate information It is used for each server of component for generating information to storage;Then it is used for each server of component for generating information from storage The middle component loaded for generating information.
In the present embodiment, host process can start subprocess in several ways.As an example, host process can pass through (i.e. Runtime classes, encapsulate environment during operation to Runtime.Each java application has a Runtime class example, Enable applications to be connected with the environment that it runs) in exec functions or ProcessBuilder (J2SE (java2 Standard edition) the new class of 1.5 one newly added in java.lang, it is such to start for creation of operating system process there is provided one kind With the method for managing process) in start functions start subprocess, and in subprocess start-up course, will be used to generate information Component entrance class and the information transmission such as entry method to the subprocess having been turned on.
Step 204, at least one component is performed by least one subprocess, generates information.
In the present embodiment, electronic equipment can perform at least one component by least one subprocess, generate information, And information is stored or sent to client.As an example, subprocess can be first by java reflex mechanisms come complete Into the execution of component, to generate information;Then converting the information into JSON, (JavaScript Object Notation, are one The data interchange format of kind of lightweight) form stored.
In some optional implementations of the present embodiment, information generating method can also include:For at least one Each subprocess in subprocess, the shape of the component indicated by the module information matched with the subprocess is obtained by the subprocess State, wherein, the state of component includes following any one:In loading, loading complete, loading failure, perform in, run succeeded, Perform failure.Here, subprocess can periodically obtain the shape of the component indicated by the module information matched with the subprocess State, and according to the different method for subsequent processing of different state triggerings.If as an example, the module information matched with the subprocess The state of indicated component be loading in or perform in, then without specially treated, subprocess continue periodically obtain with The state of component indicated by the module information of subprocess pairing.
In some optional implementations of the present embodiment, information generating method can also include:If with the subprocess The state of component indicated by the module information of pairing is loading failure, then is reloaded and matched somebody with somebody with the subprocess by the subprocess To module information indicated by component.So as to find the component of loading failure in time, and the component of loading failure is entered Row is reloaded, and further increases the success rate of generation information.
In some optional implementations of the present embodiment, information generating method can also include:If with the subprocess The state of component indicated by the module information of pairing is to perform failure, then is re-executed and matched somebody with somebody with the subprocess by the subprocess To module information indicated by component.So as to find the component for performing failure in time, and the component for performing failure is entered Row is re-executed, and further increases the success rate of generation information.
In some optional implementations of the present embodiment, information generating method can also include:If with the subprocess The state of component indicated by the module information of pairing is to perform completion, then controls the subprocess to exit by host process.In group Part is performed after completion, in time subprocess can be controlled to exit, it is achieved thereby that the timely recovery of the internal memory to electronic equipment, keeps away The occurrence of internal memory for having exempted from electronic equipment overflows.
The present embodiment possesses perfect component escape mechanism, except the state by periodically securing component, and in group Outside control subprocess is exited after part execution is completed, host process can also control subprocess to move back by various other modes Go out, to realize the timely recovery to the internal memory of electronic equipment, it is to avoid the occurrence of internal memory of electronic equipment overflows.
In some optional implementations of the present embodiment, information generating method can also include:For at least one Each subprocess in subprocess, if the subprocess is created period between time and current time and is more than preset time Section, then control the subprocess to exit by host process.If as an example, preset time period is 2 hours, when subprocess is created Between be 2017/4/18:30:00, current time is 20,17/,4/1 11:00:00, then when the subprocess is created the time and is current Between between period be 2.5 hours, it is more than preset time period, and electronic equipment can control the subprocess by host process Exit.
In some optional implementations of the present embodiment, information generating method can also include:For at least one Each subprocess in subprocess, in response to receiving for indicating the instruction that the subprocess is exited, then passes through host process control The subprocess is exited.As an example, user can be sent for indicating the finger that subprocess is exited by client to electronic equipment Order, after electronic equipment is received for indicating the instruction that subprocess is exited, can control subprocess exit by host process.
In some optional implementations of the present embodiment, pass through following between host process and at least one subprocess A kind of mode of anticipating is interacted:Shared drive, pipeline, socket.Wherein, shared drive be exactly map one section can be by other processes The internal memory accessed, this section of shared drive can be accessed by a process creation, but multiple processes, be directed between other processes Communication mode operational efficiency is low and specially designs.It is often used cooperatively with other communication mechanisms, same between process to realize Step and communication.Pipeline is a kind of semiduplex communication mode, data can only one-way flow, and can only have akin Used between process.Socket (socket) is a kind of inter-process communication mechanisms, and unlike other communication mechanisms, it can be used for Different and process communication therebetween.
The information generating method that embodiments herein is provided, after information generation instruction is received, is created that first Host process and at least one subprocess;The module information at least one component being then based in information generation instruction, passes through master At least one subprocess of Process flowchart loads at least one component;At least one group is performed finally by least one subprocess Part, generates information.By the way that data and function are packaged into component, and subprocess is controlled to load and perform group by host process Part, to generate information.The appearance of version conflict problem is avoided, so as to improve the success rate of generation information.
With further reference to Fig. 3, it illustrates the flow 300 of another of information generating method embodiment.The information is generated The flow 300 of method, comprises the following steps:
Step 301, receive information generation instruction.
In the present embodiment, electronic equipment (such as information generation clothes shown in Fig. 1 of information generating method operation thereon It is engaged in device 104) can be by wired connection mode or radio connection from client (such as terminal device shown in Fig. 1 105) information generation instruction is obtained.Wherein, information generation instruction can include being used to generate the group of at least one component of information Part information.Module information can include the information such as the entrance class and entry method of component.Each component for generating information can It is that the server of storage assembly leads to be stored in different servers (such as the server 101,102,103 shown in Fig. 1) Cross pair data corresponding with component and function is packaged and generated.
Step 302, host process and at least one subprocess are created that.
In the present embodiment, after information generation instruction is received, electronic equipment can be created that host process and at least One subprocess.Wherein, at least one subprocess can be used for loading and perform at least one component, and host process can be used for control Make at least one subprocess.Here, the quantity for the subprocess that electronic equipment is created that can be with the component for generating information Quantity is identical.
Step 303, by host process by each module information in the module information of at least one component and at least one Each subprocess in subprocess is matched one by one, and each module information is sent to the subprocess of pairing.
In the present embodiment, host process first can be carried out the module information of the component for generating information and subprocess Match, be then respectively sent to each module information in the subprocess that is matched with it, it is achieved thereby that a son is entered one by one Journey is corresponding with a module information.
In the present embodiment, host process can start whole subprocess first;Then it is each by way of being randomly assigned Individual subprocess distributes a different module information respectively.If as an example, module information includes module information A, module information B, module information C, if subprocess includes subprocess 1, subprocess 2, subprocess 3, host process can enter module information A with son Journey 1 is matched, module information B and subprocess 2 is matched, module information C and subprocess 3 are matched, or by module information C and subprocess 1 pairing, module information B and subprocess 2 is matched, module information A and subprocess 3 are matched.
Step 304, for each subprocess at least one subprocess, based on the component letter matched with the subprocess Breath, the component indicated by the module information matched with the subprocess is loaded by the subprocess.
In the present embodiment, for each subprocess at least one subprocess, the subprocess can be based on and the son The module information of process pairing, the component indicated by module information that loading is matched with the subprocess a, it is achieved thereby that son Process loads a component.If as an example, module information includes module information A, module information B, module information C, if son enters Journey includes subprocess 1, subprocess 2, subprocess 3, module information A and subprocess 1 are matched, module information B and subprocess 2 are matched, Module information C is matched with subprocess 3, then the component indicated by the charging assembly information A of subprocess 1, the charging assembly information of subprocess 2 Component indicated by B, the component indicated by the charging assembly information C of subprocess 3.
Step 305, at least one component is performed by least one subprocess, generates information.
In the present embodiment, electronic equipment can perform at least one component by least one subprocess, generate information, And information is stored or sent to client.
From figure 3, it can be seen that compared with the corresponding embodiments of Fig. 2, the flow of the information generating method in the present embodiment 300 highlight step 303 and step 304.Thus, a subprocess loading and one group of execution in the scheme of the present embodiment description Part, so that the appearance for the problem of avoiding the isolation of class, further improves the success rate of generation information.
With further reference to Fig. 4, as the realization to method shown in above-mentioned each figure, filled this application provides a kind of generation of information The one embodiment put, the device embodiment is corresponding with the embodiment of the method shown in Fig. 2, and the device specifically can apply to respectively Plant in electronic equipment.
As shown in figure 4, the information generation device 400 shown in the present embodiment can include:Receiving unit 401, creating unit 402nd, loading unit 403 and execution unit 404.Wherein, receiving unit 401, are configured to receive information generation instruction, wherein, Information generation instruction includes being used to generate each component in the module information of at least one component of information, at least one component It is that the server for storing the component is packaged and generated by pair data corresponding with the component and function;Creating unit 402, be configured to be created that host process and at least one subprocess, wherein, at least one subprocess be used for load and perform to A few component, host process is used to control at least one subprocess;Loading unit 403, is configured to be based at least one component Module information, control at least one subprocess to load at least one component by host process;Execution unit 404, is configured to At least one component is performed by least one subprocess, information is generated.
In the present embodiment, in information generation device 400:Receiving unit 401, creating unit 402, the and of loading unit 403 The specific processing of execution unit 404 and its technique effect that is brought can respectively with reference to the step 201 in Fig. 2 correspondence embodiments, The related description of step 202, step 203 and step 204, will not be repeated here.
In some optional implementations of the present embodiment, quantity and at least one component of at least one subprocess Quantity is identical;And loading unit 403 can include:With sub-unit (not shown), being configured to host process will Each module information in the module information of at least one component is matched one by one with each subprocess at least one subprocess, And send each module information to the subprocess of pairing;Subelement (not shown) is loaded, is configured to at least one Each subprocess in individual subprocess, based on the module information matched with the subprocess, is entered by subprocess loading with the son Component indicated by the module information of journey pairing.
In some optional implementations of the present embodiment, information generation device 400 can also include:Acquiring unit (not shown), is configured to for each subprocess at least one subprocess, is obtained and the son by the subprocess The state of component indicated by the module information of process pairing, wherein, the state of component includes following any one:In loading, Loading completes, loads in failure, execution, run succeeded, perform failure.
In some optional implementations of the present embodiment, information generation device 400 can also include:Reload list First (not shown), if it is that loading is lost to be configured to the state of the component indicated by the module information of subprocess pairing Lose, then the component indicated by the module information matched with the subprocess is reloaded by the subprocess.
In some optional implementations of the present embodiment, information generation device 400 can also include:Re-execute list First (not shown), if it is to perform mistake to be configured to the state of component indicated by the module information matched with the subprocess Lose, then the component indicated by the module information matched with the subprocess is re-executed by the subprocess.
In some optional implementations of the present embodiment, information generation device 400 can also include:First exits list First (not shown), if it is to have performed to be configured to the state of component indicated by the module information matched with the subprocess Into then controlling the subprocess to exit by host process.
In some optional implementations of the present embodiment, information generation device 400 can also include:Second exits list First (not shown), is configured to for each subprocess at least one subprocess, if the subprocess is created the time Period between current time is more than preset time period, then controls the subprocess to exit by host process.
In some optional implementations of the present embodiment, information generation device 400 can also include:3rd exits list First (not shown), is configured to for each subprocess at least one subprocess, is used to indicate in response to receiving The instruction that the subprocess is exited, then control the subprocess to exit by host process.
In some optional implementations of the present embodiment, pass through following between host process and at least one subprocess A kind of mode of anticipating is interacted:Shared drive, pipeline, socket.
Below with reference to Fig. 5, it illustrates suitable for for the computer system 500 for the electronic equipment for realizing the embodiment of the present application Structural representation.Electronic equipment shown in Fig. 5 is only an example, to the function of the embodiment of the present application and should not use model Shroud carrys out any limitation.
As shown in figure 5, computer system 500 includes CPU (CPU) 501, it can be read-only according to being stored in Program in memory (ROM) 502 or be loaded into program in random access storage device (RAM) 503 from storage part 508 and Perform various appropriate actions and processing.In RAM 503, the system that is also stored with 500 operates required various programs and data. CPU 501, ROM 502 and RAM 503 are connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to always Line 504.
I/O interfaces 505 are connected to lower component:Importation 506 including keyboard, mouse etc.;Penetrated including such as negative electrode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage part 508 including hard disk etc.; And the communications portion 509 of the NIC including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net performs communication process.Driver 510 is also according to needing to be connected to I/O interfaces 505.Detachable media 511, such as Disk, CD, magneto-optic disk, semiconductor memory etc., are arranged on driver 510, in order to read from it as needed Computer program be mounted into as needed storage part 508.
Especially, in accordance with an embodiment of the present disclosure, the process described above with reference to flow chart may be implemented as computer Software program.For example, embodiment of the disclosure includes a kind of computer program product, it includes being carried on computer-readable medium On computer program, the computer program include be used for execution flow chart shown in method program code.In such reality Apply in example, the computer program can be downloaded and installed by communications portion 509 from network, and/or from detachable media 511 are mounted.When the computer program is performed by CPU (CPU) 501, perform what is limited in the present processes Above-mentioned functions.
It should be noted that the above-mentioned computer-readable medium of the application can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer-readable recording medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor, or it is any more than combination.Meter The more specifically example of calculation machine readable storage medium storing program for executing can include but is not limited to:Electrical connection with one or more wires, just Take formula computer disk, hard disk, random access storage device (RAM), read-only storage (ROM), erasable type and may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this application, computer-readable recording medium can any include or store journey The tangible medium of sequence, the program can be commanded execution system, device or device and use or in connection.And at this In application, computer-readable signal media can be included in a base band or as the data-signal of carrier wave part propagation, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limit In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium beyond storage medium is read, the computer-readable medium, which can send, propagates or transmit, to be used for Used by instruction execution system, device or device or program in connection.Included on computer-readable medium Program code can be transmitted with any appropriate medium, be included but is not limited to:Wirelessly, electric wire, optical cable, RF etc., or above-mentioned Any appropriate combination.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journey Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation The part of one module of table, program segment or code, the part of the module, program segment or code is used comprising one or more In the executable instruction for realizing defined logic function.It should also be noted that in some realizations as replacement, being marked in square frame The function of note can also be with different from the order marked in accompanying drawing generation.For example, two square frames succeedingly represented are actually It can perform substantially in parallel, they can also be performed in the opposite order sometimes, this is depending on involved function.Also to note Meaning, the combination of each square frame in block diagram and/or flow chart and the square frame in block diagram and/or flow chart can be with holding The special hardware based system of function or operation as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit can also be set within a processor, for example, can be described as:A kind of processor bag Include receiving unit, creating unit, loading unit and execution unit.Wherein, the title of these units not structure under certain conditions The paired restriction of the unit in itself, for example, receiving unit is also described as " unit of receive information generation instruction ".
As on the other hand, present invention also provides a kind of computer-readable medium, the computer-readable medium can be Included in electronic equipment described in above-described embodiment;Can also be individualism, and without be incorporated the electronic equipment in. Above computer computer-readable recording medium carries one or more program, when said one or multiple programs are held by the electronic equipment During row so that the electronic equipment:Receive information generation instruction, wherein, information generation instruction includes being used to generate information at least Each component in the module information of one component, at least one component be store the component server by pair with the component Corresponding data and function are packaged and generated;Host process and at least one subprocess are created that, wherein, at least one Subprocess is used to loading and performing at least one component, and host process is used to control at least one subprocess;Based at least one group The module information of part, controls at least one subprocess to load at least one component by host process;Pass through at least one subprocess At least one component is performed, information is generated.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art Member should be appreciated that invention scope involved in the application, however it is not limited to the technology of the particular combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, is carried out by above-mentioned technical characteristic or its equivalent feature Other technical schemes formed by any combination.Such as features described above has similar work(with (but not limited to) disclosed herein The technical characteristic of energy carries out technical scheme formed by replacement mutually.

Claims (12)

1. a kind of information generating method, it is characterised in that methods described includes:
Receive information generation instruction, wherein, described information generation instruction includes being used to generate the group of at least one component of information Each component in part information, at least one described component be store the component server pass through it is pair corresponding with the component Data and function are packaged and generated;
Be created that host process and at least one subprocess, wherein, at least one described subprocess be used to loading and perform it is described extremely A few component, the host process is used to control at least one described subprocess;
Based on the module information of at least one component, at least one described subprocess is controlled to load institute by the host process State at least one component;
At least one described component is performed by least one described subprocess, information is generated.
2. according to the method described in claim 1, it is characterised in that the quantity of at least one subprocess and described at least one The quantity of individual component is identical;And
The module information based at least one component, controls at least one described subprocess to add by the host process At least one described component is carried, including:
By the host process by each module information in the module information of at least one component with it is described at least one Each subprocess in subprocess is matched one by one, and each module information is sent to the subprocess of pairing;
For each subprocess at least one described subprocess, based on the module information matched with the subprocess, by this Subprocess loads the component indicated by the module information matched with the subprocess.
3. method according to claim 2, it is characterised in that methods described also includes:
For each subprocess at least one described subprocess, the component matched with the subprocess is obtained by the subprocess The state of component indicated by information, wherein, the state of component includes following any one:In loading, loading is completed, loading is lost In losing, performing, run succeeded, perform failure.
4. method according to claim 3, it is characterised in that methods described also includes:
If the state of the component indicated by the module information matched with the subprocess is loading failure, by the subprocess again The component indicated by module information that loading is matched with the subprocess.
5. method according to claim 3, it is characterised in that methods described also includes:
If the state of the component indicated by the module information matched with the subprocess is to perform failure, by the subprocess again Perform the component indicated by the module information matched with the subprocess.
6. method according to claim 3, it is characterised in that methods described also includes:
If the state of the component indicated by the module information matched with the subprocess is to perform completion, pass through the host process control The subprocess is made to exit.
7. according to the method described in claim 1, it is characterised in that methods described also includes:
For each subprocess at least one described subprocess, if the subprocess is created between time and current time Period is more than preset time period, then controls the subprocess to exit by the host process.
8. according to the method described in claim 1, it is characterised in that methods described also includes:
For each subprocess at least one described subprocess, in response to receiving for indicating the finger that the subprocess is exited Order, then control the subprocess to exit by the host process.
9. the method according to one of claim 1-8, it is characterised in that the host process and at least one described subprocess Between interacted by any one following mode:Shared drive, pipeline, socket.
10. a kind of information generation device, it is characterised in that described device includes:
Receiving unit, is configured to receive information generation instruction, wherein, described information generation instruction includes being used to generate information Each component in the module information of at least one component, at least one described component be store the component server pass through it is right The data and function corresponding with the component are packaged and generated;
Creating unit, is configured to be created that host process and at least one subprocess, wherein, at least one described subprocess is used for Loading and at least one described component of execution, the host process are used to control at least one described subprocess;
Loading unit, is configured to the module information based at least one component, by the host process control described in extremely Few at least one described component of subprocess loading;
Execution unit, is configured at least one described subprocess and performs at least one described component, generate information.
11. a kind of electronic equipment, it is characterised in that the electronic equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are by one or more of computing devices so that one or more of processors are real The existing method as described in any in claim 1-9.
12. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program The method as described in any in claim 1-9 is realized when being executed by processor.
CN201710320044.6A 2017-05-09 2017-05-09 information generating method and device Pending CN107145372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710320044.6A CN107145372A (en) 2017-05-09 2017-05-09 information generating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710320044.6A CN107145372A (en) 2017-05-09 2017-05-09 information generating method and device

Publications (1)

Publication Number Publication Date
CN107145372A true CN107145372A (en) 2017-09-08

Family

ID=59776813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710320044.6A Pending CN107145372A (en) 2017-05-09 2017-05-09 information generating method and device

Country Status (1)

Country Link
CN (1) CN107145372A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019149150A1 (en) * 2018-01-30 2019-08-08 上海连尚网络科技有限公司 Application processing method and device, and computer storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1834918A (en) * 2005-11-04 2006-09-20 北京金山软件有限公司 Call method between chip
CN101938579A (en) * 2009-06-30 2011-01-05 中兴通讯股份有限公司 Seating system based on multi-process and method for realizing seating business
CN102984500A (en) * 2012-10-26 2013-03-20 安科智慧城市技术(中国)有限公司 Method and device and system for achieving compatibility among multiple video monitor equipment
CN103677823A (en) * 2013-12-06 2014-03-26 北京奇虎科技有限公司 Method and device for managing browser plug-ins
CN104216738A (en) * 2014-08-20 2014-12-17 北京奇艺世纪科技有限公司 Operation method and operation device of application program
CN104268019A (en) * 2014-09-23 2015-01-07 广州金山网络科技有限公司 Software operating method and device and terminal
CN104317605A (en) * 2014-11-18 2015-01-28 东方网力科技股份有限公司 Assembly operation method and device
US20150067705A1 (en) * 2013-08-27 2015-03-05 Samsung Electronics Co., Ltd. Process operating method and apparatus thereof
CN105022630A (en) * 2015-06-30 2015-11-04 中标软件有限公司 Component management system and component management method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1834918A (en) * 2005-11-04 2006-09-20 北京金山软件有限公司 Call method between chip
CN101938579A (en) * 2009-06-30 2011-01-05 中兴通讯股份有限公司 Seating system based on multi-process and method for realizing seating business
CN102984500A (en) * 2012-10-26 2013-03-20 安科智慧城市技术(中国)有限公司 Method and device and system for achieving compatibility among multiple video monitor equipment
US20150067705A1 (en) * 2013-08-27 2015-03-05 Samsung Electronics Co., Ltd. Process operating method and apparatus thereof
CN103677823A (en) * 2013-12-06 2014-03-26 北京奇虎科技有限公司 Method and device for managing browser plug-ins
CN104216738A (en) * 2014-08-20 2014-12-17 北京奇艺世纪科技有限公司 Operation method and operation device of application program
CN104268019A (en) * 2014-09-23 2015-01-07 广州金山网络科技有限公司 Software operating method and device and terminal
CN104317605A (en) * 2014-11-18 2015-01-28 东方网力科技股份有限公司 Assembly operation method and device
CN105022630A (en) * 2015-06-30 2015-11-04 中标软件有限公司 Component management system and component management method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019149150A1 (en) * 2018-01-30 2019-08-08 上海连尚网络科技有限公司 Application processing method and device, and computer storage medium

Similar Documents

Publication Publication Date Title
CN107220033A (en) Method and apparatus for controlling thread pool thread quantity
CN107343045A (en) Cloud computing system and cloud computing method and device for controlling server
CN112925587B (en) Method and device for initializing applications
CN107463406A (en) Issue the method and electronic equipment of Mobile solution
US8938712B2 (en) Cross-platform virtual machine and method
CN112148278A (en) Visual block chain intelligent contract framework and intelligent contract development and deployment method
CN112199164A (en) Method for ensuring container mirror image consistency
CN112328301B (en) Method and device for maintaining consistency of operating environments, storage medium and electronic equipment
US10866843B2 (en) Method and system for invoking event-based package module
CN112965794A (en) Algorithm calling method, electronic device and storage medium
CN113204412B (en) Method for task scheduling, electronic device and computer storage medium
CN109582317A (en) Method and apparatus for debugging boarding application
US11256556B2 (en) Systems and methods for generating an API caching library using a shared resource file
CN110018831B (en) Program processing method, program processing apparatus, and computer-readable storage medium
CN109683992A (en) Method and apparatus for managing object
CN107145372A (en) information generating method and device
CN113835748B (en) Packaging method, system and readable medium for application program based on HTML5
CN110262841A (en) The method and apparatus that a kind of pair of bytecode is enhanced
CN115509531A (en) Micro front end implementation method, device, terminal and storage medium based on front end technology
CN115022312A (en) Method and device for realizing multiple intelligent contract engines, electronic equipment and storage medium
CN114661274A (en) Method and device for generating intelligent contract
CN114741294A (en) Page debugging method, device, equipment and storage medium
CN113885841A (en) Script generation method and device, electronic equipment and readable medium
CN113448585A (en) Optimization method and device for thread pool, electronic equipment and storage medium
CN113760356B (en) Differential configuration method, device, equipment and medium of program product

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

Application publication date: 20170908

RJ01 Rejection of invention patent application after publication