CN108829502A - The implementation method and device of threading operation - Google Patents

The implementation method and device of threading operation Download PDF

Info

Publication number
CN108829502A
CN108829502A CN201810646532.0A CN201810646532A CN108829502A CN 108829502 A CN108829502 A CN 108829502A CN 201810646532 A CN201810646532 A CN 201810646532A CN 108829502 A CN108829502 A CN 108829502A
Authority
CN
China
Prior art keywords
task
template
bit stream
mission bit
asynchronous
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810646532.0A
Other languages
Chinese (zh)
Other versions
CN108829502B (en
Inventor
赵肖勇
康高杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201810646532.0A priority Critical patent/CN108829502B/en
Publication of CN108829502A publication Critical patent/CN108829502A/en
Application granted granted Critical
Publication of CN108829502B publication Critical patent/CN108829502B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

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

The invention discloses the implementation method of threading operation and devices.The method includes:Obtain the mission bit stream of pending task;The task template to match is chosen according to the mission bit stream, and task is generated according to the mission bit stream and the task template of selection;The task is executed in this thread, or notice first object thread executes the task.The beneficial effect of the technical solution is, task template both supported it is extensive, it is more common, also support specialization, can be promoted in performance, and same task template can be used for the task of a type, implement simple and convenient, efficiency is very high.

Description

The implementation method and device of threading operation
Technical field
The present invention relates to field of computer technology, and in particular to the implementation method and device of threading operation.
Background technique
Thread is in general the minimum unit of program operation, is the basis of program operation though threading operation is small.Cause This, carrying out the improvement in performance to threading operation is always problem to be solved.
For example, cross-thread is there may be Transfer Parameters are needed, with the continuous development of programming, developer is uncommon Hope that the parameter type that can be realized transmitting increases, number is also not fixed;Thread may need to issue network request, network request compared with More, corresponding readjustment is also complicated, and there may be memory leak issues, etc. in this process.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State the implementation method and device of the threading operation of problem.
According to one aspect of the present invention, a kind of implementation method of threading operation is provided, including:
Obtain the mission bit stream of pending task;
The task template to match, and the task according to the mission bit stream and selection are chosen according to the mission bit stream Template generation task;
The task is executed in this thread, or notice first object thread executes the task.
Optionally, the pending task is asynchronous task, is asynchronous with the matched task template of the mission bit stream Business template.
Optionally, the asynchronous task template is obtained from specified asynchronous task class, the asynchronous task class after It holds from CWindowImpl class.
Optionally, the mission bit stream includes that can call object and/or parameter, described according to the mission bit stream and selection Task template generate task include:
The mission bit stream is encapsulated as asynchronous task object by the asynchronous task template.
Optionally, described the mission bit stream is encapsulated as asynchronous task object by the asynchronous task template to include:
The encapsulation to the asynchronous task object is realized using binding mechanism.
Optionally, the notice first object thread execution task includes:
The asynchronous task object is put into the message queue of the first object thread, so that the first object thread The asynchronous task object is taken out from the message queue receiving execution signal, executes the asynchronous task.
Optionally, the mission bit stream includes that implementing result captures function;
When implementing result capture function is by first object thread dispatching, held described in execution in the second subject thread Row result captures function, to capture the implementing result of the asynchronous task from the first object thread.
Optionally, the implementing result capture function is by being packaged to lambda expression formula.
Optionally, the implementing result capture function includes type extraction function, the first capture function and the second capture letter Number, the first capture function and the second capture function are overload function;
The type extraction function is used to carry out type extraction to the implementing result, if the type prototype extracted is not wrapped Containing parameter is then captured using the first capture function, if the type prototype extracted includes parameter, utilizes the second capture letter Number is captured.
Optionally, this method further includes:
Judge to whether there is for the first object thread for executing the task, if it does not exist, then initialization is for executing The first object thread of the task.
Optionally, the task is network request task;
It is described that the task template to match is chosen according to the mission bit stream, and according to the mission bit stream and selection Task template generates task:
The address URL of network request and call back function are encapsulated as a network request by network request template.
Optionally, the network request template is obtained by the network request static library of load.
Optionally, the network request template includes following one or more:
From the specialization template of memory read data;
The specialization template of data is read from file;
To the specialization template of memory write-in data;
To the specialization template of file write data.
Optionally, the task template includes variable element template;
It is described to include according to the mission bit stream and the task template of selection generation task:
Type extraction is carried out to the mission bit stream, converts mission bit stream to several parameters of universal class;
According to several described parameters and the variable element template generation task.
Optionally, the mission bit stream includes following one or more:
Fundamental type object, lambda expression formula, pointer, intelligent pointer, generic function.
Another aspect according to the present invention provides a kind of realization device of threading operation, including:
Mission bit stream acquiring unit, suitable for obtaining the mission bit stream of pending task;
Task generation unit, suitable for the task template to be matched according to mission bit stream selection, and according to described Information of being engaged in and the task template of selection generate task;
Execution unit, suitable for executing the task, or the notice first object thread execution task in this thread.
Optionally, the pending task is asynchronous task, is asynchronous with the matched task template of the mission bit stream Business template.
Optionally, the asynchronous task template is obtained from specified asynchronous task class, the asynchronous task class after It holds from CWindowImpl class.
Optionally, the mission bit stream includes that can call object and/or parameter;
The task generation unit, suitable for the mission bit stream is encapsulated as asynchronous task pair by the asynchronous task template As.
Optionally, the task generation unit, suitable for realizing the encapsulation to the asynchronous task object using binding mechanism.
Optionally, the execution unit, suitable for the asynchronous task object to be put into the message of the first object thread Queue so that the first object thread receive execute signal the asynchronous task pair is taken out from the message queue As executing the asynchronous task.
Optionally, the mission bit stream includes that implementing result captures function;
When implementing result capture function is by first object thread dispatching, held described in execution in the second subject thread Row result captures function, to capture the implementing result of the asynchronous task from the first object thread.
Optionally, the implementing result capture function is by being packaged to lambda expression formula.
Optionally, the implementing result capture function includes type extraction function, the first capture function and the second capture letter Number, the first capture function and the second capture function are overload function;
The type extraction function is used to carry out type extraction to the implementing result, if the type prototype extracted is not wrapped Containing parameter is then captured using the first capture function, if the type prototype extracted includes parameter, utilizes the second capture letter Number is captured.
Optionally, the execution unit is further adapted for judging whether there is for the first object thread for executing the task, If it does not exist, then the first object thread for executing the task is initialized.
Optionally, the task is network request task;
The task generation unit, suitable for sealing the address URL of network request and call back function by network request template Dress is a network request.
Optionally, the network request template is obtained by the network request static library of load.
Optionally, the network request template includes following one or more:From the specialization template of memory read data; The specialization template of data is read from file;To the specialization template of memory write-in data;To the specialization template of file write data.
Optionally, the task template includes variable element template;
The task generation unit is suitable for carrying out type extraction to the mission bit stream, convert mission bit stream to general Several parameters of type, according to several described parameters and the variable element template generation task.
Optionally, the mission bit stream includes following one or more:
Fundamental type object, lambda expression formula, pointer, intelligent pointer, generic function.
Another aspect according to the present invention provides a kind of intelligent terminal, including:Processor;And it is arranged to store The memory of computer executable instructions, the executable instruction execute the processor such as any of the above-described institute The method stated.
According to the present invention in another aspect, providing a kind of computer readable storage medium, wherein it is described computer-readable Storage medium stores one or more programs, and one or more of programs when being executed by a processor, are realized as any of the above-described The method.
It can be seen from the above, technical solution of the present invention, after the mission bit stream for getting pending task, can choose with Matched task template generate task, to be executed in this thread or other threads.The technical solution it is beneficial Effect is, task template both supported it is extensive, it is more common, also support specialization, can be promoted in performance, and for The task of one type can use same task template, implement simple and convenient, efficiency is very high.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of flow diagram of the implementation method of threading operation according to an embodiment of the invention;
Fig. 2 shows a kind of structural schematic diagrams of the realization device of threading operation according to an embodiment of the invention;
Fig. 3 shows the structural schematic diagram of intelligent terminal according to an embodiment of the invention;
Fig. 4 shows the structural schematic diagram of computer readable storage medium according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 shows a kind of flow diagram of the implementation method of threading operation according to an embodiment of the invention.Such as Shown in Fig. 1, this method includes:
Step S110 obtains the mission bit stream of pending task.
Here, mission bit stream can be a plurality of types of, such as in one embodiment of the invention, in the above method, Mission bit stream includes following one or more:Fundamental type object, lambda expression formula, pointer, intelligent pointer, common letter Number.
It usually can realize using fundamental type object (such as integer object int, string char), pointer as ginseng Number is transmitted, such as can transmit fundamental type by PostMessage in cross-thread.But Class Type (class class Type, such as intelligent pointer) it tends not to be transmitted as the parameter of PostMessage.Therefore in the embodiment of the present invention In, a kind of task template is realized, most types of parameter can be supported to transmit, and almost do not have to the number of parameters of transmitting It is restricted.
Step S120 chooses the task template to match according to mission bit stream, and according to mission bit stream and times chosen Business template generation task.
Step S130 executes task, or notice first object thread execution task in this thread.
As it can be seen that method shown in FIG. 1 can be chosen matching after the mission bit stream for getting pending task Task template generates task, to be executed in this thread or other threads.The beneficial effect of the technical solution is, Task template both supported it is extensive, it is more common, also support specialization, can be promoted in performance, and for a type Task can use same task template, implement simple and convenient, efficiency is very high.
The process of notice first object thread execution task, which can be considered as, makes it execute an asynchronous task.I.e. in the present invention One embodiment in, in the above method, pending task be asynchronous task, with the matched task template of mission bit stream be it is asynchronous Task template.
Asynchronous task refers to that first object thread can execute task and this thread does not need to rely on its implementing result immediately And waited, other tasks can be executed parallel.
In one embodiment of the invention, in the above method, asynchronous task template is from specified asynchronous task class It obtains, asynchronous task Similar integral is from CWindowImpl class.
CWindowImpl class is the template class for being finally derived from CWindow class.It is different due to needing other threads to execute Step task realizes that a window can be convenient the transmission of carry out task for the thread.In general, establishing window needs for a thread CWindowImpl class is inherited, and in an embodiment of the present invention due to needing to realize asynchronous task with asynchronous task template, because This asynchronous task class newly realized in the present embodiment can be inherit CWindowImpl class, be built such that window only need after Hold the asynchronous task class newly realized.
In one embodiment of the invention, in the above method, mission bit stream includes that can call object and/or parameter, root Generating task according to mission bit stream and the task template of selection includes:Mission bit stream is encapsulated as asynchronous task by asynchronous task template Object.
Here, object can be called to can be function, lambda expression formula etc..Parameter can be calling, and this can call object Parameter, type, quantity may each be diversified.
Wherein, the std that the specific implementation of asynchronous task object can be provided by c++ is encapsulated::Function is realized. For example, fn (can call object), args (relevant parameter) are packaged into std::function<void()>.
But by debugging discovery, if directly using std::Function can generate unnecessary lvalue several times and copy Shellfish and r value copy, therefore in one embodiment of the invention, in the above method, mission bit stream is sealed by asynchronous task template Dress is that asynchronous task object includes:The encapsulation to asynchronous task object is realized using binding mechanism.
The binding mechanism is similar to the binding principle that Windows system provides, and is no longer discussed in detail herein.By binding machine System substitution std::Function realizes encapsulation, it is possible to reduce unnecessary lvalue copy and r value copy above-mentioned.
In one embodiment of the invention, in the above method, notice first object thread execution task includes:It will be asynchronous Task object is put into the message queue of first object thread, so that first object thread is receiving execution signal from message queue Middle taking-up asynchronous task object executes asynchronous task.
As can be seen that this sample thread does not need to be concerned about how asynchronous task executes in subject thread, it is only necessary to will be different Step task object assignment is put into message queue.This and PostMessage mode are not both fairly obvious, PostMessage It is only one message of transmitting, the parameter of carrying is limited;And mode provided by the embodiment of the present invention, it is accomplished that task is transmitted, The parameter type and quantity of carrying have all obtained great expansion.
Sometimes this thread needs first object thread to return to implementing result, such as main thread (UI thread) notice sub thread is held Row time-consuming operation updates UI according to implementing result (User Interface, user interface are preceding same).Therefore in the present invention One embodiment in, in the above method, mission bit stream include implementing result capture function;When implementing result capture function is by the When one subject thread is called, implementing result is executed in the second subject thread and captures function, it is different to be captured from first object thread The implementing result of step task.
Here the second subject thread is also possible to this thread.As can be seen that executing the process that implementing result captures function It still can be an asynchronous procedure.Such to be advantageous in that, the first object thread for executing task can be indifferent to needs and return Which data is returned, captures function by needing the second subject thread of these data to execute implementing result.
In one embodiment of the invention, in the above method, it is by expressing lambda that implementing result, which captures function, What formula was packaged.
Also mentioning lambda expression formula above can be used as mission bit stream.Lambda expression formula be properly termed as anonymous function or It is closure, may be implemented directly to execute at calling, does not need to state in advance.
In one embodiment of the invention, in the above method, implementing result capture function includes type extraction function, the One capture function and the second capture function, the first capture function and the second capture function are overload function;Type extracts function and uses In carrying out type extraction to implementing result, if the type prototype extracted does not include parameter, carried out using the first capture function Capture is captured if the type prototype extracted includes parameter using the second capture function.
The mode that a kind of pair of performance further optimizes is provided in the present embodiment, that is, the class of c++11 offer has been provided Type extracts thought, and the type prototype extracted for implementing result includes that parameter and two kinds of situations not comprising parameter carry out respectively Specialization processing.Here type extraction function can be customized, and included function can also be applied.
In one embodiment of the invention, the above method further includes:Judge the first object thread for executing task It whether there is, if it does not exist, then initialize the first object thread for executing task.
For example, be applicable in c++11 Programming, the template template provided using c++11, a kind of example realized is such as Under:
template<typename Fn,typename...Args>
void ATPostTask(ATID atid,Fn&&fn,Args&&...args);
Here Fn, which is still represented, can call object, and Args represents the parameter that can call object dependency.ATID is customized Digital ID, it is corresponding with a thread, if corresponding ID is not present when executing the above method, illustrate that subject thread is not deposited Needing to initialize a corresponding thread.
A specific example is given below, such as needs to execute Func (a, b) on thread ATID_DB, can have as follows Several realizations:
1) ATPostTask (ATID_DB, Func, a, b), fn=Func, args=a, b;
2)ATPostTask(ATID_DB,[a,b]{Func(a,b);), fn=[a, b] { Func (a, b);, args= It is empty;
3)ATPostTask(ATID_DB,[a](B b){Func(a,b);, b), fn=[a] (B b) Func (a, b);, args=b;
As can be seen that parameter and the setting that can call object are extremely flexible in concrete implementation.
Above-described embodiment describes the transmitting of cross-thread parameter, realizes some modes of asynchronous task.And the side of threading operation Only this is not a kind of for formula, is described below how task relevant to network request is realized.
In client-side program, if necessary to carry out network communication, network request is issued, that necessarily there are much applicable fields Scape, usual developer can be realized with independent dynamic link library dll.Network request is generally accompanied with corresponding readjustment Processing, is found by analysis, and there are the following problems for the poor dynamic link library of some exploitations:Each readjustment will define one Class causes class to explode, and has inevitably resulted in a large amount of memory leak issues.And excessive packaging when due to using, Want to find callback code at calling, it is even more extremely difficult, it is very unfriendly to developer.
And the above problem can be effectively improved by being realized using task template.In one embodiment of the invention, above-mentioned In method, task is network request task;Choose the task template that matches according to mission bit stream, and according to mission bit stream and The task template of selection generates task:The address URL of network request and call back function are encapsulated by network request template For a network request.
The format for moving into a new network request can be as follows:Req (url ... fn).Here, call back function fn It can use lambda to realize, the characteristic of lambda already explained above, it can easily be seen that at calling, it can be direct Callback code is found, for developer, the code for taking over other developers exploitation is also easier to read.
In one embodiment of the invention, in the above method, network request template is quiet by the network request of load What state library obtained.Here network request static library can be a dll, client using when loaded.
In one embodiment of the invention, in the above method, network request template includes following one or more:From The specialization template of memory read data;The specialization template of data is read from file;To the specialization template of memory write-in data;Xiang Wen The specialization template of part write-in data.
In the present embodiment, it is contemplated that the optimization of performance is respectively provided with phase for four class average case in network request The specialization template answered, being capable of significant increase performance through practice.
In one embodiment of the invention, in the above method, task template includes variable element template;According to mission bit stream Generating task with the task template of selection includes:Type extraction is carried out to mission bit stream, converts universal class for mission bit stream Several parameters;According to several parameters and variable element template generation task.
Variable element template is the new features that c++11 is provided, and support is extensive, and common templates may only take fixed quantity Template parameter, and by variable element template, it theoretically can receive any number of template parameter.And as mission bit stream Parameter can be it is a plurality of types of, can by its by type extraction be converted to universal class.
Fig. 2 shows a kind of structural schematic diagrams of the realization device of threading operation according to an embodiment of the invention.Such as Shown in Fig. 2, the realization device 200 of threading operation includes:
Mission bit stream acquiring unit 210, suitable for obtaining the mission bit stream of pending task.
Here, mission bit stream can be a plurality of types of, such as in one embodiment of the invention, in above-mentioned apparatus, Mission bit stream includes following one or more:Fundamental type object, lambda expression formula, pointer, intelligent pointer, common letter Number.
It usually can realize using fundamental type object (such as integer object int, string char), pointer as ginseng Number is transmitted, such as can transmit fundamental type by PostMessage in cross-thread.But Class Type (class class Type, such as intelligent pointer) it tends not to be transmitted as the parameter of PostMessage.Therefore in the embodiment of the present invention In, a kind of task template is realized, most types of parameter can be supported to transmit, and almost do not have to the number of parameters of transmitting It is restricted.
Task generation unit 220, suitable for the task template to be matched according to mission bit stream selection, and according to mission bit stream Task is generated with the task template of selection.
Execution unit 230, suitable for executing task, or notice first object thread execution task in this thread.
As it can be seen that device shown in Fig. 2 can be chosen matching after the mission bit stream for getting pending task Task template generates task, to be executed in this thread or other threads.The beneficial effect of the technical solution is, Task template both supported it is extensive, it is more common, also support specialization, can be promoted in performance, and for a type Task can use same task template, implement simple and convenient, efficiency is very high.
The process of notice first object thread execution task, which can be considered as, makes it execute an asynchronous task.I.e. in the present invention One embodiment in, in above-mentioned apparatus, pending task be asynchronous task, with the matched task template of mission bit stream be it is asynchronous Task template.
In one embodiment of the invention, in above-mentioned apparatus, asynchronous task template is from specified asynchronous task class It obtains, asynchronous task Similar integral is from CWindowImpl class.
CWindowImpl class is the template class for being finally derived from CWindow class.It is different due to needing other threads to execute Step task realizes that a window can be convenient the transmission of carry out task for the thread.In general, establishing window needs for a thread CWindowImpl class is inherited, and in an embodiment of the present invention due to needing to realize asynchronous task with asynchronous task template, because This asynchronous task class newly realized in the present embodiment can be inherit CWindowImpl class, be built such that window only need after Hold the asynchronous task class newly realized.
In one embodiment of the invention, in above-mentioned apparatus, mission bit stream includes that can call object and/or parameter;Appoint Business generation unit 220, suitable for mission bit stream is encapsulated as asynchronous task object by asynchronous task template.
Here, object can be called to can be function, lambda expression formula etc..Parameter can be calling, and this can call object Parameter, type, quantity may each be diversified.
Wherein, the std that the specific implementation of asynchronous task object can be provided by c++ is encapsulated::Function is realized. For example, fn (can call object), args (relevant parameter) are packaged into std::function<void()>.
But by debugging discovery, if directly using std::Function can generate unnecessary lvalue several times and copy Shellfish and r value copy, therefore in one embodiment of the invention, in above-mentioned apparatus, task generation unit 220 is tied up suitable for utilizing Determine encapsulation of the mechanism realization to asynchronous task object.
The binding mechanism is similar to the binding principle that Windows system provides, and is no longer discussed in detail herein.By binding machine System substitution std::Function realizes encapsulation, it is possible to reduce unnecessary lvalue copy and r value copy above-mentioned.
In one embodiment of the invention, in above-mentioned apparatus, execution unit 230, suitable for asynchronous task object to be put into The message queue of first object thread so that first object thread receive execute signal asynchronous is taken out from message queue Business object, executes asynchronous task.
As can be seen that this sample thread does not need to be concerned about how asynchronous task executes in subject thread, it is only necessary to will be different Step task object assignment is put into message queue.This and PostMessage mode are not both fairly obvious, PostMessage It is only one message of transmitting, the parameter of carrying is limited;And mode provided by the embodiment of the present invention, it is accomplished that task is transmitted, The parameter type and quantity of carrying have all obtained great expansion.
Sometimes this thread needs first object thread to return to implementing result, such as main thread (UI thread) notice sub thread is held Row time-consuming operation updates UI according to implementing result.Therefore in one embodiment of the invention, in above-mentioned apparatus, mission bit stream Function is captured including implementing result;When implementing result capture function is by first object thread dispatching, in the second subject thread It executes implementing result and captures function, to capture the implementing result of asynchronous task from first object thread.
Here the second subject thread is also possible to this thread.As can be seen that executing the process that implementing result captures function It still can be an asynchronous procedure.Such to be advantageous in that, the first object thread for executing task can be indifferent to needs and return Which data is returned, captures function by needing the second subject thread of these data to execute implementing result.
In one embodiment of the invention, in above-mentioned apparatus, it is by expressing lambda that implementing result, which captures function, What formula was packaged.
Also mentioning lambda expression formula above can be used as mission bit stream.Lambda expression formula be properly termed as anonymous function or It is closure, may be implemented directly to execute at calling, does not need to state in advance.
In one embodiment of the invention, in above-mentioned apparatus, implementing result capture function includes type extraction function, the One capture function and the second capture function, the first capture function and the second capture function are overload function;Type extracts function and uses In carrying out type extraction to implementing result, if the type prototype extracted does not include parameter, carried out using the first capture function Capture is captured if the type prototype extracted includes parameter using the second capture function.
The mode that a kind of pair of performance further optimizes is provided in the present embodiment, that is, the class of c++11 offer has been provided Type extracts thought, and the type prototype extracted for implementing result includes that parameter and two kinds of situations not comprising parameter carry out respectively Specialization processing.Here type extraction function can be customized, and included function can also be applied.
In one embodiment of the invention, in above-mentioned apparatus, execution unit 230 is further adapted for judging for executing task First object thread whether there is, if it does not exist, then initialize the first object thread for executing task.
For example, be applicable in c++11 Programming, the template template provided using c++11, a kind of example realized is such as Under:
template<typename Fn,typename...Args>
void ATPostTask(ATID atid,Fn&&fn,Args&&...args);
Here Fn, which is still represented, can call object, and Args represents the parameter that can call object dependency.ATID is customized Digital ID, it is corresponding with a thread, if corresponding ID is not present when executing the above method, illustrate that subject thread is not deposited Needing to initialize a corresponding thread.
A specific example is given below, such as needs to execute Func (a, b) on thread ATID_DB, can have as follows Several realizations:
1) ATPostTask (ATID_DB, Func, a, b), fn=Func, args=a, b;
2)ATPostTask(ATID_DB,[a,b]{Func(a,b);), fn=[a, b] { Func (a, b);, args= It is empty;
3)ATPostTask(ATID_DB,[a](B b){Func(a,b);, b), fn=[a] (B b) Func (a, b);, args=b;
As can be seen that parameter and the setting that can call object are extremely flexible in concrete implementation.
Above-described embodiment describes the transmitting of cross-thread parameter, realizes some modes of asynchronous task.And the side of threading operation Only this is not a kind of for formula, is described below how task relevant to network request is realized.
In client-side program, if necessary to carry out network communication, network request is issued, that necessarily there are much applicable fields Scape, usual developer can be realized with independent dynamic link library dll.Network request is generally accompanied with corresponding readjustment Processing, is found by analysis, and there are the following problems for the poor dynamic link library of some exploitations:Each readjustment will define one Class causes class to explode, and has inevitably resulted in a large amount of memory leak issues.And excessive packaging when due to using, Want to find callback code at calling, it is even more extremely difficult, it is very unfriendly to developer.
And the above problem can be effectively improved by being realized using task template.In one embodiment of the invention, above-mentioned In device, task is network request task;Task generation unit 220, suitable for leading to the address URL of network request and call back function It crosses network request template and is encapsulated as a network request.
The format for moving into a new network request can be as follows:Req (url ... fn).Here, call back function fn It can use lambda to realize, the characteristic of lambda already explained above, it can easily be seen that at calling, it can be direct Callback code is found, for developer, the code for taking over other developers exploitation is also easier to read.
In one embodiment of the invention, in above-mentioned apparatus, network request template is quiet by the network request of load What state library obtained.Here network request static library can be a dll, client using when loaded.
In one embodiment of the invention, in above-mentioned apparatus, network request template includes following one or more:From The specialization template of memory read data;The specialization template of data is read from file;To the specialization template of memory write-in data;Xiang Wen The specialization template of part write-in data.
In the present embodiment, it is contemplated that the optimization of performance is respectively provided with phase for four class average case in network request The specialization template answered, being capable of significant increase performance through practice.
In one embodiment of the invention, in above-mentioned apparatus, task template includes variable element template;Task generates single Member 220 is suitable for carrying out type extraction to mission bit stream, converts mission bit stream to several parameters of universal class, if according to Dry parameter and variable element template generation task.
Variable element template is the new features that c++11 is provided, and support is extensive, and common templates may only take fixed quantity Template parameter, and by variable element template, it theoretically can receive any number of template parameter.And as mission bit stream Parameter can be it is a plurality of types of, can by its by type extraction be converted to universal class.
In conclusion technical solution of the present invention can be chosen therewith after the mission bit stream for getting pending task Matched task template generates task, to be executed in this thread or other threads.The beneficial effect of the technical solution Fruit is, task template both supported it is extensive, it is more common, also support specialization, can be promoted in performance, and for one The task of a type can use same task template, implement simple and convenient, efficiency is very high.
It should be noted that:
Algorithm and display be not inherently related to any certain computer, virtual bench or other equipment provided herein. Various fexible units can also be used together with teachings based herein.As described above, it constructs required by this kind of device Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention:It is i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice In the realization device of microprocessor or digital signal processor (DSP) to realize threading operation according to an embodiment of the present invention The some or all functions of some or all components.The present invention is also implemented as executing method as described herein Some or all device or device programs (for example, computer program and computer program product).Such reality Existing program of the invention can store on a computer-readable medium, or may be in the form of one or more signals. Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or in any other forms It provides.
For example, Fig. 3 shows the structural schematic diagram of intelligent terminal according to an embodiment of the invention.The intelligent terminal packet It includes processor 310 and is arranged to the memory 320 of storage computer executable instructions (computer readable program code).Storage Device 320 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory), EPROM, hard disk or ROM etc Electronic memory.Memory 320 has the computer-readable program stored for executing any method and step in the above method The memory space 330 of code 331.For example, the memory space 330 for storing computer readable program code may include difference For realizing each computer readable program code 331 of the various steps in above method.Computer readable program code 331 can read or be written to the production of this one or more computer program from one or more computer program product In product.These computer program products include such as hard disk, and the program code of compact-disc (CD), storage card or floppy disk etc carries Body.Such computer program product is usually computer readable storage medium described in such as Fig. 4.Fig. 4 is shown according to this A kind of structural schematic diagram of the computer readable storage medium of invention one embodiment.The computer readable storage medium 400 is deposited The computer readable program code 331 for executing steps of a method in accordance with the invention is contained, it can be by the place of intelligent terminal 300 It manages device 310 to read, when computer readable program code 331 is run by intelligent terminal 300, the intelligent terminal 300 is caused to execute Each step in method described above, specifically, the computer-readable journey of the computer-readable recording medium storage Sequence code 331 can execute method shown in any of the above-described embodiment.Computer readable program code 331 can be with appropriate shape Formula is compressed.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
Embodiment of the invention discloses A1, a kind of implementation method of threading operation, including:
Obtain the mission bit stream of pending task;
The task template to match, and the task according to the mission bit stream and selection are chosen according to the mission bit stream Template generation task;
The task is executed in this thread, or notice first object thread executes the task.
A2, method as described in a1, wherein the pending task is asynchronous task, matched with the mission bit stream Task template is asynchronous task template.
A3, as described in A2 method, wherein the asynchronous task template is obtained from specified asynchronous task class, The asynchronous task Similar integral is from CWindowImpl class.
A4, as described in A2 method, wherein the mission bit stream includes that can call object and/or parameter, described according to institute The task template for stating mission bit stream and selection generates task and includes:
The mission bit stream is encapsulated as asynchronous task object by the asynchronous task template.
A5, the method as described in A4, wherein it is described the mission bit stream is encapsulated as by the asynchronous task template it is asynchronous Task object includes:
The encapsulation to the asynchronous task object is realized using binding mechanism.
A6, the method as described in A4, wherein the notice first object thread executes the task and includes:
The asynchronous task object is put into the message queue of the first object thread, so that the first object thread The asynchronous task object is taken out from the message queue receiving execution signal, executes the asynchronous task.
A7, as described in A2 method, wherein the mission bit stream includes that implementing result captures function;
When implementing result capture function is by first object thread dispatching, held described in execution in the second subject thread Row result captures function, to capture the implementing result of the asynchronous task from the first object thread.
A8, the method as described in A7, wherein the implementing result capture function is by sealing to lambda expression formula What dress obtained.
A9, the method as described in A7 or A8, wherein the implementing result capture function includes type extraction function, first Function and the second capture function are captured, the first capture function and the second capture function are overload function;
The type extraction function is used to carry out type extraction to the implementing result, if the type prototype extracted is not wrapped Containing parameter is then captured using the first capture function, if the type prototype extracted includes parameter, utilizes the second capture letter Number is captured.
A10, method as described in a1, wherein this method further includes:
Judge to whether there is for the first object thread for executing the task, if it does not exist, then initialization is for executing The first object thread of the task.
A11, method as described in a1, wherein the task is network request task;
It is described that the task template to match is chosen according to the mission bit stream, and according to the mission bit stream and selection Task template generates task:
The address URL of network request and call back function are encapsulated as a network request by network request template.
A12, the method as described in A11, wherein the network request template is obtained by the network request static library of load ?.
A13, the method as described in A11, wherein the network request template includes following one or more:
From the specialization template of memory read data;
The specialization template of data is read from file;
To the specialization template of memory write-in data;
To the specialization template of file write data.
A14, method as described in a1, wherein the task template includes variable element template;
It is described to include according to the mission bit stream and the task template of selection generation task:
Type extraction is carried out to the mission bit stream, converts mission bit stream to several parameters of universal class;
According to several described parameters and the variable element template generation task.
A15, method as described in a1, wherein the mission bit stream includes following one or more:
Fundamental type object, lambda expression formula, pointer, intelligent pointer, generic function.
The embodiment of the present invention also discloses B16, a kind of realization device of threading operation, including:
Mission bit stream acquiring unit, suitable for obtaining the mission bit stream of pending task;
Task generation unit, suitable for the task template to be matched according to mission bit stream selection, and according to described Information of being engaged in and the task template of selection generate task;
Execution unit, suitable for executing the task, or the notice first object thread execution task in this thread.
B17, the device as described in B16, wherein the pending task is asynchronous task, is matched with the mission bit stream Task template be asynchronous task template.
B18, the device as described in B17, wherein the asynchronous task template is obtained from specified asynchronous task class , the asynchronous task Similar integral is from CWindowImpl class.
B19, the device as described in B17, wherein the mission bit stream includes that can call object and/or parameter;
The task generation unit, suitable for the mission bit stream is encapsulated as asynchronous task pair by the asynchronous task template As.
B20, the device as described in B19, wherein
The task generation unit, suitable for realizing the encapsulation to the asynchronous task object using binding mechanism.
B21, the device as described in B19, wherein
The execution unit, suitable for the asynchronous task object to be put into the message queue of the first object thread, with So that the first object thread is executed signal and is taken out the asynchronous task object from the message queue receiving, executes institute State asynchronous task.
B22, the device as described in B17, wherein the mission bit stream includes that implementing result captures function;
When implementing result capture function is by first object thread dispatching, held described in execution in the second subject thread Row result captures function, to capture the implementing result of the asynchronous task from the first object thread.
B23, the device as described in B22, wherein the implementing result capture function is by carrying out to lambda expression formula What encapsulation obtained.
B24, the device as described in B22 or B23, wherein implementing result capture function includes type extraction function, the One capture function and the second capture function, the first capture function and the second capture function are overload function;
The type extraction function is used to carry out type extraction to the implementing result, if the type prototype extracted is not wrapped Containing parameter is then captured using the first capture function, if the type prototype extracted includes parameter, utilizes the second capture letter Number is captured.
B25, the device as described in B16, wherein
The execution unit is further adapted for judging whether there is for the first object thread for executing the task, if not depositing Then initializing the first object thread for executing the task.
B26, the device as described in B16, wherein the task is network request task;
The task generation unit, suitable for sealing the address URL of network request and call back function by network request template Dress is a network request.
B27, the device as described in B26, wherein the network request template is obtained by the network request static library of load ?.
B28, the device as described in B26, wherein the network request template includes following one or more:From memory Read the specialization template of data;The specialization template of data is read from file;To the specialization template of memory write-in data;It is write to file Enter the specialization template of data.
B29, the device as described in B16, wherein the task template includes variable element template;
The task generation unit is suitable for carrying out type extraction to the mission bit stream, convert mission bit stream to general Several parameters of type, according to several described parameters and the variable element template generation task.
B30, the device as described in B16, wherein the mission bit stream includes following one or more:
Fundamental type object, lambda expression formula, pointer, intelligent pointer, generic function.
The embodiment of the present invention also discloses C31, a kind of intelligent terminal, wherein the intelligent terminal includes:Processor;With And it is arranged to the memory of storage computer executable instructions, the executable instruction when executed holds the processor Method of the row as described in any one of A1-A16.
The embodiment of the present invention also discloses D32, a kind of computer readable storage medium, wherein described computer-readable Storage medium stores one or more programs, and one or more of programs when being executed by a processor, are realized as in A1-A16 Described in any item methods.

Claims (10)

1. a kind of implementation method of threading operation, including:
Obtain the mission bit stream of pending task;
The task template to match, and the task template according to the mission bit stream and selection are chosen according to the mission bit stream Generation task;
The task is executed in this thread, or notice first object thread executes the task.
2. the method for claim 1, wherein the pending task is asynchronous task, matched with the mission bit stream Task template be asynchronous task template.
3. method according to claim 2, wherein the asynchronous task template is obtained from specified asynchronous task class , the asynchronous task Similar integral is from CWindowImpl class.
4. method according to claim 2, wherein the mission bit stream includes that can call object and/or parameter, the basis The mission bit stream and the task template of selection generate task:
The mission bit stream is encapsulated as asynchronous task object by the asynchronous task template.
5. a kind of realization device of threading operation, including:
Mission bit stream acquiring unit, suitable for obtaining the mission bit stream of pending task;
Task generation unit is believed suitable for the task template to be matched according to mission bit stream selection, and according to the task Breath and the task template chosen generate task;
Execution unit, suitable for executing the task, or the notice first object thread execution task in this thread.
6. device as claimed in claim 5, wherein the pending task is asynchronous task, is matched with the mission bit stream Task template be asynchronous task template.
7. device as claimed in claim 6, wherein the asynchronous task template is obtained from specified asynchronous task class , the asynchronous task Similar integral is from CWindowImpl class.
8. device as claimed in claim 6, wherein the mission bit stream includes that can call object and/or parameter;
The task generation unit, suitable for the mission bit stream is encapsulated as asynchronous task object by the asynchronous task template.
9. a kind of intelligent terminal, wherein the intelligent terminal includes:Processor;And it is arranged to the executable finger of storage computer The memory of order, the executable instruction execute the processor as described in any one of claim 1-4 Method.
10. a kind of computer readable storage medium, wherein the computer-readable recording medium storage one or more program, One or more of programs when being executed by a processor, realize such as method of any of claims 1-4.
CN201810646532.0A 2018-06-21 2018-06-21 Method and device for realizing thread operation Active CN108829502B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810646532.0A CN108829502B (en) 2018-06-21 2018-06-21 Method and device for realizing thread operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810646532.0A CN108829502B (en) 2018-06-21 2018-06-21 Method and device for realizing thread operation

Publications (2)

Publication Number Publication Date
CN108829502A true CN108829502A (en) 2018-11-16
CN108829502B CN108829502B (en) 2021-11-23

Family

ID=64142000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810646532.0A Active CN108829502B (en) 2018-06-21 2018-06-21 Method and device for realizing thread operation

Country Status (1)

Country Link
CN (1) CN108829502B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090094606A1 (en) * 2007-10-04 2009-04-09 National Chung Cheng University Method for fast XSL transformation on multithreaded environment
CN101694626A (en) * 2009-09-30 2010-04-14 曙光信息产业(北京)有限公司 Script execution system and method
CN103092682A (en) * 2011-10-28 2013-05-08 浙江大华技术股份有限公司 Asynchronous network application program processing method
CN103116520A (en) * 2012-11-02 2013-05-22 深圳键桥通讯技术股份有限公司 Remote procedure call remote position control (RPC) method based on transmission control protocol (TCP)/user datagram protocol (UDP)
CN103679800A (en) * 2013-11-21 2014-03-26 北京航空航天大学 System for generating virtual scenes of video images and method for constructing frame of system
CN103856396A (en) * 2012-11-30 2014-06-11 中兴通讯股份有限公司 Message transmission method between plugins and system thereof and proxy plugin
CN104243274A (en) * 2013-06-14 2014-12-24 亿览在线网络技术(北京)有限公司 Message processing method and message center system
CN105045602A (en) * 2015-08-24 2015-11-11 北京金山安全软件有限公司 Method and device for constructing Hadoop application development framework and electronic device
CN105302557A (en) * 2015-10-30 2016-02-03 北京奇虎科技有限公司 Thread establishing and processing method and apparatus
CN106371829A (en) * 2016-08-24 2017-02-01 北京邮电大学 Modularization thinking-based template framework design method and system
CN106663246A (en) * 2014-08-28 2017-05-10 谷歌公司 Systems and methods for biasing task assistance auto-complete suggestions
CN106873949A (en) * 2015-12-11 2017-06-20 泰康保险集团股份有限公司 Code generating method and its device
CN107315581A (en) * 2017-05-23 2017-11-03 努比亚技术有限公司 Mission script generating means and method, task scheduling system and method
CN107643889A (en) * 2016-07-20 2018-01-30 平安科技(深圳)有限公司 Page rendering method and apparatus based on template engine

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090094606A1 (en) * 2007-10-04 2009-04-09 National Chung Cheng University Method for fast XSL transformation on multithreaded environment
CN101694626A (en) * 2009-09-30 2010-04-14 曙光信息产业(北京)有限公司 Script execution system and method
CN103092682A (en) * 2011-10-28 2013-05-08 浙江大华技术股份有限公司 Asynchronous network application program processing method
CN103116520A (en) * 2012-11-02 2013-05-22 深圳键桥通讯技术股份有限公司 Remote procedure call remote position control (RPC) method based on transmission control protocol (TCP)/user datagram protocol (UDP)
CN103856396A (en) * 2012-11-30 2014-06-11 中兴通讯股份有限公司 Message transmission method between plugins and system thereof and proxy plugin
CN104243274A (en) * 2013-06-14 2014-12-24 亿览在线网络技术(北京)有限公司 Message processing method and message center system
CN103679800A (en) * 2013-11-21 2014-03-26 北京航空航天大学 System for generating virtual scenes of video images and method for constructing frame of system
CN106663246A (en) * 2014-08-28 2017-05-10 谷歌公司 Systems and methods for biasing task assistance auto-complete suggestions
CN105045602A (en) * 2015-08-24 2015-11-11 北京金山安全软件有限公司 Method and device for constructing Hadoop application development framework and electronic device
CN105302557A (en) * 2015-10-30 2016-02-03 北京奇虎科技有限公司 Thread establishing and processing method and apparatus
CN106873949A (en) * 2015-12-11 2017-06-20 泰康保险集团股份有限公司 Code generating method and its device
CN107643889A (en) * 2016-07-20 2018-01-30 平安科技(深圳)有限公司 Page rendering method and apparatus based on template engine
CN106371829A (en) * 2016-08-24 2017-02-01 北京邮电大学 Modularization thinking-based template framework design method and system
CN107315581A (en) * 2017-05-23 2017-11-03 努比亚技术有限公司 Mission script generating means and method, task scheduling system and method

Also Published As

Publication number Publication date
CN108829502B (en) 2021-11-23

Similar Documents

Publication Publication Date Title
US10833928B1 (en) Exchanging information among system middleware and models
US11232257B2 (en) Apparatuses, systems, and methods for providing a visual program for machine vision systems
Cotton Obit: A development environment for astronomical algorithms
Indrasiri et al. gRPC: up and running: building cloud native applications with Go and Java for Docker and Kubernetes
US6098067A (en) Remote computer management system
EP2062136B1 (en) System and method for using stream objects to perform stream processing in a text-based computing environment
US20150347362A1 (en) Methods and Systems for Enabling the Provisioning and Execution of a Platform-Independent Application
CN106462412A (en) Structural identification of dynamically-generated, pattern-based classes
CN110489323B (en) Visual RPC API debugging method, device, medium and equipment
CN110069259B (en) ID L file-based parsing method and device, electronic equipment and storage medium
CN106796521B (en) API version control independent of product release
CN110209569A (en) Interface test method, interface test device and storage medium
WO2024045382A1 (en) Implementation of reflective mechanism in blockchain
CN108932123B (en) Parameter processing method and device
CN113626038A (en) Code conversion method, device, equipment and storage medium
CN111142928A (en) Method and terminal for automatically constructing front-end project
WO2019029451A1 (en) Method for publishing mobile applications and electronic apparatus
CN112631649A (en) Intelligent contract management method, device, terminal equipment and medium
CN116436936B (en) Data storage system, method, storage medium and electronic equipment
CN111324395B (en) Calling method, device and computer readable storage medium
CN108829502A (en) The implementation method and device of threading operation
CN109739548A (en) Program packaging method, program packing apparatus and computer readable storage medium
CN111198708A (en) Method and device for solving conflict of jar packets
CN112732277B (en) Java multi-service application automatic installation and deployment integration method and system
CN115344275A (en) Method and device for generating image file of operating system and computer equipment

Legal Events

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