CN109885386A - A kind of method, apparatus and electronic equipment of multitask execution - Google Patents

A kind of method, apparatus and electronic equipment of multitask execution Download PDF

Info

Publication number
CN109885386A
CN109885386A CN201910004110.8A CN201910004110A CN109885386A CN 109885386 A CN109885386 A CN 109885386A CN 201910004110 A CN201910004110 A CN 201910004110A CN 109885386 A CN109885386 A CN 109885386A
Authority
CN
China
Prior art keywords
association
journey
cheng
task
suspend
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
CN201910004110.8A
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 longzhixin Technology Co.,Ltd.
Original Assignee
Beijing Panda Mutual Entertainment 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 Panda Mutual Entertainment Technology Co Ltd filed Critical Beijing Panda Mutual Entertainment Technology Co Ltd
Priority to CN201910004110.8A priority Critical patent/CN109885386A/en
Publication of CN109885386A publication Critical patent/CN109885386A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

The embodiment of the invention provides a kind of methods that multitask executes, device and electronic equipment, it can be in single thread, use first association's Cheng Zhihang first task being pre-created, and when first association journey ran to for the first particular moment, suspend the operation of first association journey, and in single thread, use second association's the second task of Cheng Zhihang being pre-created, due to when first association's journey is when running to particular moment, meeting switchover operation second assists journey, it realizes in single thread, multiple tasks are alternately performed, it avoids the obstruction due to a certain task and influences the operation of other tasks, improve execution efficiency.

Description

A kind of method, apparatus and electronic equipment of multitask execution
Technical field
The present invention relates to field of computer technology, the method, apparatus and electronics executed more particularly to a kind of multitask is set It is standby.
Background technique
In the mode of existing computer task processing, it is generally divided into the method for synchronization and asynchronous system, two ways is corresponding Realization process it is as follows:
The method of synchronization: executing in single thread, during handling first task, if necessary to handle the second task, It then has to wait for that second task could be handled after first task be disposed, for example, thumbed up in system in mobile terminal, If after user carries out thumbing up operation, need to could show after obtaining the response of server by the way of synchronous and thumb up figure Mark.
Asynchronous system: needs execute in multiple threads, during handling first task, if necessary to processing second A task, it is no longer necessary to until first task is disposed, so that it may selection processing second simultaneously in other threads Task, such as after user carries out thumbing up operation, can be shown while the response of waiting for server and thumb up icon.
Inventor has found that at least there are the following problems for the prior art in the implementation of the present invention:
The method of synchronization, the same time can only a task, task processing process be easy obstruction, low efficiency, time overhead Greatly, asynchronous system in task processes, needs multiple threads while running, memory overhead is big.
Summary of the invention
The method, apparatus and electronic equipment for being designed to provide a kind of multitask execution of the embodiment of the present invention, to realize In single thread, multiple tasks are alternately performed, and are avoided the obstruction due to a certain task and are influenced the operations of other tasks, improve Execution efficiency.Specific technical solution is as follows:
The embodiment of the invention provides a kind of methods that multitask executes, which comprises
In single thread, first association's Cheng Zhihang first task being pre-created is used;
When first association journey ran to for the first particular moment, suspend the operation of first association journey;
In single thread, second association's the second task of Cheng Zhihang being pre-created is used.
Further, it tells when first association journey ran to for the first particular moment, suspends the fortune of first association journey Row, comprising:
When first association journey runs to preset first point of interruption, suspend the operation of first association journey, described the One point of interruption is the first predeterminated position for interrupting the first association Cheng Yunhang;And/or
When I/O obstruction occurs as the first association Cheng Yunhang, suspend the operation of first association journey.
Further, first association journey includes register context and stack, described when first association journey is run to When the first particular moment, after the operation for suspending first association journey, further includes:
Save the register context and stack of first association journey;
After second association's second task of Cheng Zhihang for using and being pre-created, further includes:
When second association journey runs to the second particular moment, the operation of pause the second association journey;
The register context and stack for loading first association journey, to restore the operation of first association journey.
Further, described when second association journey ran to for the second particular moment, suspend the fortune of second association journey Row, comprising:
When second association journey runs to preset second point of interruption, suspend the operation of second association journey, described the Two points of interruption are the first predeterminated position for interrupting the second association Cheng Yunhang;And/or
When I/O obstruction occurs as the second association Cheng Yunhang, suspend the operation of second association journey.
Further, described in single thread, use first association's Cheng Zhihang first task being pre-created, comprising:
In single thread, using first passing through the first association Cheng Zhihang for calling function coroutine.create () creation in advance One task;
It is described in single thread, use be pre-created second association the second task of Cheng Zhihang, comprising:
In single thread, using first passing through the second association Cheng Zhihang for calling function coroutine.create () creation in advance Two tasks.
The embodiment of the invention also provides the device that a kind of multitask executes, described device includes:
First task execution module, for using first association's Cheng Zhihang first task being pre-created in single thread;
First association's journey suspends module, for suspending described first when first association journey ran to for the first particular moment Assist the operation of journey;
Second task execution module uses second association's the second task of Cheng Zhihang being pre-created in single thread.
Further, first association journey suspends module, specifically for running to preset first when first association journey When the point of interruption, suspend it is described first association journey operation, first point of interruption be interrupt it is described first association Cheng Yunhang first in advance If position;And/or suspend the operation of first association journey when generation I/O obstruction as the first association Cheng Yunhang.
Further, first association journey includes register context and stack, described device, further includes:
First memory module, for saving the register context and stack of first association journey;
Second association's journey suspends module, for running to for the second particular moment when second association journey, suspends second association The operation of journey;
First association's journey recovery device, for loading the register context and stack of first association journey, to restore described The operation of first association's journey.
Further, second association journey suspends module, specifically for running to preset second when second association journey When the point of interruption, suspend it is described second association journey operation, second point of interruption be interrupt it is described second association Cheng Yunhang first in advance If position;And/or suspend the operation of second association journey when generation I/O obstruction as the second association Cheng Yunhang.
Further, the first task execution module is specifically used in single thread, first passes through calling function using pre- First association's Cheng Zhihang first task of coroutine.create () creation;
Second task execution module is specifically used in single thread, first passes through calling function using pre- Second association's the second task of Cheng Zhihang of coroutine.create () creation.
The embodiment of the present invention also provides a kind of electronic equipment, including processor, communication interface, memory and communication bus, Wherein, processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes a kind of any of the above-described multitask execution method The step of.
Present invention implementation additionally provides a kind of computer readable storage medium, storage in the computer readable storage medium There is computer program, the computer program realizes a kind of step of any of the above-described multitask execution method when being executed by processor Suddenly.
The embodiment of the invention also provides a kind of computer program products comprising instruction, when it runs on computers When, so that computer executes the method that a kind of any of the above-described multitask executes.
The method, apparatus and electronic equipment that multitask provided in an embodiment of the present invention executes, can make in single thread Cheng Zhihang first task is assisted with first be pre-created, and when first association journey ran to for the first particular moment, pause The operation of first association journey, and in single thread, using second association's the second task of Cheng Zhihang being pre-created, due to when the For one association's journey when running to particular moment, meeting switchover operation second assists journey, realizes in single thread, the alternating of multiple tasks is held Row avoids the obstruction due to a certain task and influences the operations of other tasks, improves execution efficiency.
Certainly, implement any of the products of the present invention or method it is not absolutely required at the same reach all the above excellent Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described.
Fig. 1 is the flow chart of multitask execution method provided by one embodiment of the present invention;
Fig. 2 is the flow chart for the multitask execution method that another embodiment of the present invention provides;
Fig. 3 is the structural schematic diagram of multitask execution apparatus provided by one embodiment of the present invention;
Fig. 4 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to provide the operation that can be avoided the obstruction due to a certain task and influence other tasks, execution efficiency is improved Scheme, the method, apparatus executed the embodiment of the invention provides a kind of multitask and electronic equipment, below in conjunction with Figure of description Preferred embodiment of the present invention will be described, it should be understood that preferred embodiment described herein is only used for describing and explaining The present invention is not intended to limit the present invention.And in the absence of conflict, the spy in the embodiment and embodiment in the application Sign can be combined with each other.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description.
S101: in single thread, first association's Cheng Zhihang first task being pre-created is used.
In this step, optionally, first association's journey is pre-created, first association's journey includes register context and stack, wherein the The register context of one association's journey is used to store the first instruction, address information and register state information etc. when assisting Cheng Yunhang, The stack of first association's journey is used to store the data informations such as parameter value and local variable required when the first association Cheng Yunhang, preferentially, needle To different language platform, it can choose different modes and first association's journey be pre-created, for example, being directed to programming language Lua, Ke Yitong Expanding library coroutine is crossed to realize the creation of association's journey, specifically, can be by calling in expanding library coroutine Coroutine.creat () function realizes the creation of first item association journey, for C language, Cheng Ku can be assisted to realize by libco The creation of journey is assisted, specifically, association's journey can be created and initialized by co_create (), can be led to when needing to start association's journey Crossing association's journey that the starting of calling co_resume () function has been pre-created can also be created in addition to aforesaid way by yield sentence First association's journey is built, or journey is assisted by greenlet module creation first.
S102: when first association's journey ran to for the first particular moment, the operation of the first association of pause journey.
In this step, the first particular moment can be first point of interruption of pre-set association Cheng Yunhang, be also possible to the When one association Cheng Zuowei consumer, it is necessary to which the data for obtaining producer's production can continue to run down, and first association's journey waits At the time of producer's creation data or at the time of first association's journey waits exterior I/O input, i.e. the first particular moment is first When I/O obstruction occurring when assisting Cheng Yunhang, when first association's journey ran to for the first particular moment, the operation of the first association of pause journey.
S103: in single thread, second association's the second task of Cheng Zhihang being pre-created is used.
In this step, optionally, second association's journey is pre-created, for different language platform, can choose different modes Second association's journey is pre-created, for example, being directed to programming language Lua, the wound of association's journey can be realized by expanding library coroutine It builds, specifically, can be by calling coroutine.creat () function in expanding library coroutine to realize that Section 2 assists journey Creation can assist Cheng Ku to realize the creation of association's journey, specifically, can pass through co_create () for C language by libco Association's journey is created and initializes, it can be by calling the starting of co_resume () function to be pre-created when needing to start association's journey Journey is assisted, in addition to aforesaid way, second association's journey can also be created by yield sentence, or pass through greenlet module creation the Two association's journeys.
The method that above-mentioned multitask provided in an embodiment of the present invention executes, can be in single thread, using being pre-created First association Cheng Zhihang first task, and when first association journey ran to for the first particular moment when, pause first association journey operation, And in single thread, using be pre-created second association the second task of Cheng Zhihang, due to when first association journey run to it is specific When the moment, meeting switchover operation second assists journey, realizes in single thread, multiple tasks are alternately performed, and are avoided due to a certain The obstruction of business and the operation for influencing other tasks, improve execution efficiency.
In another embodiment of the invention, a kind of multitask execution method is also provided, as shown in Fig. 2, this method includes Following steps:
S201: in single thread, first association's Cheng Zhihang first task being pre-created is used.
In this step, it can specifically be executed by the way of above-mentioned steps S101 description, be no longer described in detail herein.
S202: when first association's journey ran to for the first particular moment, the operation of the first association of pause journey.
In this step, it can specifically be executed by the way of above-mentioned steps S102 description, be no longer described in detail herein.
S203: the register context and stack of first association's journey are saved.
In this step, first association's journey includes register context and stack, wherein the register context of first association's journey is used for Instruction, address information and register state information etc. when the first association of storage Cheng Yunhang, the stack of first association's journey is for storing first Data informations, the register contexts and stack for saving first association's journey such as parameter value and local variable required when Cheng Yunhang is assisted to protect The data such as store instruction, address and all kinds of parameters in the register context and stack of first association's journey are held, when first association's journey is run to First point of interruption, for example, first association's Cheng Zhihang yield sentence, by the register context and stack of currently running first association journey Interior Various types of data is saved to other storage locations, which can return to an address pointer, restores the as later The register context of one association Cheng Yunhang and the foundation of stack.Preferential, it can be called by the correlation in ucontext in glibc Save the register context and stack of association's journey.
S204: in single thread, second association's the second task of Cheng Zhihang being pre-created is used.
In this step, it can specifically be executed by the way of above-mentioned steps S103 description, be no longer described in detail herein.
S205: when second association's journey runs to the second particular moment, the operation of the second association of pause journey.
In this step, the second particular moment can be second point of interruption of pre-set association Cheng Yunhang, be also possible to the When two association Cheng Zuowei consumers, it is necessary to which the data for obtaining producer's production can continue to run down, and second association's journey waits At the time of producer's creation data or at the time of second association's journey waits exterior I/O input, i.e. the second particular moment is second When I/O obstruction occurring when assisting Cheng Yunhang, when second association's journey ran to for the second particular moment, the operation of the second association of pause journey.
S206: the register context and stack of the first association of load journey, to restore the operation of first association's journey.
In this step, after second association's journey has timed out operation, in order to restore the operation of first association's journey, it is necessary to first restore The register context and stack of first association's journey, preferential, first association's journey can be restored by swapcontext in glibc Register context and stack, operating status when first association's journey being allowed to restore operation suspension, and continue to remain operational.
The method that above-mentioned multitask as shown in Figure 2 provided in an embodiment of the present invention executes, in single thread, using preparatory First association's Cheng Zhihang first task of creation, and when first association's journey ran to for the first particular moment, the first association of pause journey Operation, and the register context and stack of first association's journey are saved, and in single thread, use second association's journey being pre-created The second task is executed, and when second association's journey runs to the second particular moment, the operation of the second association of pause journey, and load first The register context and stack of association's journey realize in single thread, the alternating of multiple tasks to restore the operation of first association's journey It executes, avoids the obstruction due to a certain task and influence the operations of other tasks, improve execution efficiency.
Based on the same inventive concept, the method that a kind of multitask provided according to embodiments of the present invention executes, the present invention are real It applies example and a kind of device that multitask executes also is provided, as shown in figure 3, the device includes:
First task execution module 301, for using the first association Cheng Zhihang being pre-created in single thread
First task;
First association's journey suspends module 302, for when first association's journey ran to for the first particular moment, journey to be assisted in pause first Operation;
Second task execution module 303 uses second association's the second task of Cheng Zhihang being pre-created in single thread.
Further, first association's journey suspends module 302, specifically for running to preset first point of interruption when first association's journey When, the operation of the first association of pause journey, first point of interruption is the first predeterminated position for interrupting the first association Cheng Yunhang;And/or when first When I/O obstruction occurring when assisting Cheng Yunhang, the operation of the first association of pause journey.
Further, first association's journey includes register context and stack, device, further includes:
First memory module 304, for saving the register context and stack of first association's journey;
Second association's journey suspends module 305, for running to the second particular moment, the fortune of the second association of pause journey when second association's journey Row;
First association's journey recovery device 306, for loading the register context and stack of first association's journey, to restore the first association The operation of journey.
Further, second association's journey suspends module 305, specifically for running to preset second point of interruption when second association's journey When, the operation of the second association of pause journey, second point of interruption is the first predeterminated position for interrupting the second association Cheng Yunhang;And/or when second When I/O obstruction occurring when assisting Cheng Yunhang, the operation of the second association of pause journey.
Further, first task execution module 301 is specifically used in single thread, first passes through calling function using pre- First association's Cheng Zhihang first task of coroutine.create () creation;
Second task execution module 303 is specifically used in single thread, first passes through calling function using pre- Second association's the second task of Cheng Zhihang of coroutine.create () creation.
The embodiment of the invention also provides a kind of electronic equipment, as shown in figure 4, include processor 401, communication interface 402, Memory 403 and communication bus 404, wherein processor 401, communication interface 402, memory 403 are complete by communication bus 404 At mutual communication,
Memory 403, for storing computer program;
Processor 401 when for executing the program stored on memory 403, realizes following steps:
In single thread, first association's Cheng Zhihang first task being pre-created is used;
When first association's journey ran to for the first particular moment, the operation of the first association of pause journey;
In single thread, second association's the second task of Cheng Zhihang being pre-created is used.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with computer program in storage medium, the computer program realizes that any of the above-described multitask is held when being executed by processor The step of row method.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that computer executes any multitask execution method in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For electronic equipment, computer readable storage medium, computer program product embodiments, implement since it is substantially similar to method Example, so being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (11)

1. a kind of method that multitask executes, which is characterized in that the described method includes:
In single thread, first association's Cheng Zhihang first task being pre-created is used;
When first association journey ran to for the first particular moment, suspend the operation of first association journey;
In single thread, second association's the second task of Cheng Zhihang being pre-created is used.
2. the method according to claim 1, wherein telling when first association journey ran to for the first particular moment When, suspend the operation of first association journey, comprising:
When first association journey runs to preset first point of interruption, suspend the operation of first association journey, in described first Breakpoint is the first predeterminated position for interrupting the first association Cheng Yunhang;And/or
When I/O obstruction occurs as the first association Cheng Yunhang, suspend the operation of first association journey.
3. the method according to claim 1, wherein first association journey includes register context and stack, It is described when it is described first association journey ran to for the first particular moment when, suspend it is described first association journey operation after, further includes:
Save the register context and stack of first association journey;
After second association's second task of Cheng Zhihang for using and being pre-created, further includes:
When second association journey runs to the second particular moment, the operation of pause the second association journey;
The register context and stack for loading first association journey, to restore the operation of first association journey.
4. according to the method described in claim 3, it is characterized in that, described when second association journey ran to for the second particular moment When, suspend the operation of second association journey, comprising:
When second association journey runs to preset second point of interruption, suspend the operation of second association journey, in described second Breakpoint is the first predeterminated position for interrupting the second association Cheng Yunhang;And/or
When I/O obstruction occurs as the second association Cheng Yunhang, suspend the operation of second association journey.
5. according to the method described in claim 3, using the first association being pre-created it is characterized in that, described in single thread Cheng Zhihang first task, comprising:
In single thread, call the first association Cheng Zhihang of function coroutine.create () creation first using first passing through in advance Business;
It is described in single thread, use be pre-created second association the second task of Cheng Zhihang, comprising:
In single thread, the second association Cheng Zhihang second of function coroutine.create () creation is called to appoint using first passing through in advance Business.
6. the device that a kind of multitask executes, which is characterized in that described device includes:
First task execution module, for using first association's Cheng Zhihang first task being pre-created in single thread;
First association's journey suspends module, for suspending first association journey when first association journey ran to for the first particular moment Operation;
Second task execution module, for using second association's the second task of Cheng Zhihang being pre-created in single thread.
7. device according to claim 6, which is characterized in that first association journey suspends module, is specifically used for when described When first association's journey runs to preset first point of interruption, suspend the operation of first association journey, first point of interruption is to interrupt The first predeterminated position of the first association Cheng Yunhang;And/or suspend institute when generation I/O obstruction as the first association Cheng Yunhang State the operation of first association's journey.
8. device according to claim 6, which is characterized in that first association journey includes register context and stack, institute State device, further includes:
First memory module, for saving the register context and stack of first association journey;
Second association's journey suspends module, for running to for the second particular moment when second association journey, suspends second association journey Operation;
First association's journey recovery device, for loading the register context and stack of first association journey, to restore described first Assist the operation of journey.
9. device according to claim 8, which is characterized in that second association journey suspends module, is specifically used for when described When second association's journey runs to preset second point of interruption, suspend the operation of second association journey, second point of interruption is to interrupt The first predeterminated position of the second association Cheng Yunhang;And/or suspend institute when generation I/O obstruction as the second association Cheng Yunhang State the operation of second association's journey.
10. device according to claim 8, which is characterized in that the first task execution module is specifically used in single line Cheng Zhong calls the first of function coroutine.create () creation to assist Cheng Zhihang first task using first passing through in advance;
Second task execution module is specifically used in single thread, first passes through calling function using pre- Second association's the second task of Cheng Zhihang of coroutine.create () creation.
11. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 1-5.
CN201910004110.8A 2019-01-03 2019-01-03 A kind of method, apparatus and electronic equipment of multitask execution Pending CN109885386A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910004110.8A CN109885386A (en) 2019-01-03 2019-01-03 A kind of method, apparatus and electronic equipment of multitask execution

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910004110.8A CN109885386A (en) 2019-01-03 2019-01-03 A kind of method, apparatus and electronic equipment of multitask execution

Publications (1)

Publication Number Publication Date
CN109885386A true CN109885386A (en) 2019-06-14

Family

ID=66925588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910004110.8A Pending CN109885386A (en) 2019-01-03 2019-01-03 A kind of method, apparatus and electronic equipment of multitask execution

Country Status (1)

Country Link
CN (1) CN109885386A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247984A (en) * 2019-06-27 2019-09-17 腾讯科技(深圳)有限公司 Method for processing business, device and storage medium
CN110764745A (en) * 2019-09-16 2020-02-07 平安科技(深圳)有限公司 Variable transmission and collection method, device and computer readable storage medium
CN111078323A (en) * 2019-10-12 2020-04-28 平安科技(深圳)有限公司 Coroutine-based data processing method and device, computer equipment and storage medium
CN111897667A (en) * 2020-08-07 2020-11-06 杭州安恒信息技术股份有限公司 Asynchronous communication method and device based on event driving and lua corotation
CN112162840A (en) * 2020-09-29 2021-01-01 曹蕤 Coroutine processing and managing method based on interrupt reentrant mechanism
CN112905267A (en) * 2019-12-03 2021-06-04 阿里巴巴集团控股有限公司 Method, device and equipment for accessing virtual machine to coroutine library

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160246643A1 (en) * 2013-11-29 2016-08-25 Tencent Technology (Shenzhen) Company Limited Method and apparatus for scheduling blocking tasks
CN106980546A (en) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 A kind of task asynchronous execution method, apparatus and system
CN107147641A (en) * 2017-05-10 2017-09-08 深圳市万游引力科技有限公司 A kind of information processing method, system and computer-readable storage medium
CN107766730A (en) * 2017-09-18 2018-03-06 北京知道未来信息技术有限公司 A kind of method that leak early warning is carried out for extensive target
CN107943577A (en) * 2016-10-12 2018-04-20 百度在线网络技术(北京)有限公司 Method and apparatus for scheduler task
CN108156181A (en) * 2018-02-01 2018-06-12 杭州安恒信息技术股份有限公司 A kind of vulnerability detection method and its vulnerability scanning system based on the association asynchronous IO of journey

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160246643A1 (en) * 2013-11-29 2016-08-25 Tencent Technology (Shenzhen) Company Limited Method and apparatus for scheduling blocking tasks
CN106980546A (en) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 A kind of task asynchronous execution method, apparatus and system
CN107943577A (en) * 2016-10-12 2018-04-20 百度在线网络技术(北京)有限公司 Method and apparatus for scheduler task
CN107147641A (en) * 2017-05-10 2017-09-08 深圳市万游引力科技有限公司 A kind of information processing method, system and computer-readable storage medium
CN107766730A (en) * 2017-09-18 2018-03-06 北京知道未来信息技术有限公司 A kind of method that leak early warning is carried out for extensive target
CN108156181A (en) * 2018-02-01 2018-06-12 杭州安恒信息技术股份有限公司 A kind of vulnerability detection method and its vulnerability scanning system based on the association asynchronous IO of journey

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HOUYANHUA1: "python协程,gevent(yield阻塞,greenlet),协程实现多任务(有规律的交替协作执行)", 《CSDN》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247984A (en) * 2019-06-27 2019-09-17 腾讯科技(深圳)有限公司 Method for processing business, device and storage medium
CN110247984B (en) * 2019-06-27 2022-02-22 腾讯科技(深圳)有限公司 Service processing method, device and storage medium
CN110764745A (en) * 2019-09-16 2020-02-07 平安科技(深圳)有限公司 Variable transmission and collection method, device and computer readable storage medium
CN110764745B (en) * 2019-09-16 2024-02-02 平安科技(深圳)有限公司 Variable transmission and collection method, device and computer readable storage medium
CN111078323A (en) * 2019-10-12 2020-04-28 平安科技(深圳)有限公司 Coroutine-based data processing method and device, computer equipment and storage medium
CN112905267A (en) * 2019-12-03 2021-06-04 阿里巴巴集团控股有限公司 Method, device and equipment for accessing virtual machine to coroutine library
CN112905267B (en) * 2019-12-03 2024-05-10 阿里巴巴集团控股有限公司 Method, device and equipment for accessing virtual machine to coroutine library
CN111897667A (en) * 2020-08-07 2020-11-06 杭州安恒信息技术股份有限公司 Asynchronous communication method and device based on event driving and lua corotation
CN112162840A (en) * 2020-09-29 2021-01-01 曹蕤 Coroutine processing and managing method based on interrupt reentrant mechanism
CN112162840B (en) * 2020-09-29 2024-03-08 曹蕤 Coroutine processing and management method based on interrupt reentry mechanism

Similar Documents

Publication Publication Date Title
CN109885386A (en) A kind of method, apparatus and electronic equipment of multitask execution
US20110145758A1 (en) Display navigation system, method and computer program product
US8561070B2 (en) Creating a thread of execution in a computer processor without operating system intervention
CN106133698A (en) Framework for user model collapse report
CN106844017A (en) The method and apparatus that event is processed for Website server
CN104778066B (en) The quick start method and its device of a kind of embedded OS
CN111831176B (en) Application program management method and device
CN108416449A (en) A kind of O&M method and apparatus
CN111158756A (en) Method and apparatus for processing information
EP3819758A2 (en) Instruction executing method and apparatus, electronic device, and computer-readable storage medium
CN108446301A (en) Service scripts splits method of summary, device and equipment
KR101060175B1 (en) Method for controlling touch screen, recording medium for the same, and method for controlling cloud computing
WO2013131190A1 (en) Dynamic user interface aggregation through smart eventing with non-instantiated content
AU2017438670B2 (en) Simulation device, simulation method, and simulation program
CN103136043A (en) Method, system and network node for transferring asynchronous input and output (IO)
US8347219B1 (en) Object-level display building
CN108037914A (en) A kind of method and device of Android primary system combination js exploitations
JP2022065641A (en) Network operator processing method, apparatus, electronic device, storage medium and program
JP4687995B2 (en) GUI system
CN105353975B (en) A kind of method and device of storage device management
CN115794286A (en) Execution method and device of GUI input data and electronic equipment
JP2006053654A (en) Job allocation device
JP2009251681A (en) Expansion method for stack region and program
TWI649690B (en) Integration of distributed computing engine modules and control of interactive interface analysis modules system
CN108140363A (en) G context scheduling based on flip queue management

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210312

Address after: 101300 309, 3rd floor, 60 Fuqian 1st Street, Tianzhu District, Shunyi District, Beijing

Applicant after: Beijing longzhixin Technology Co.,Ltd.

Address before: 100041 room a-1123, 2nd floor, building 3, yard 30, Shixing street, Shijingshan District, Beijing

Applicant before: BEIJING PANDA MUTUAL ENTERTAINMENT TECHNOLOGY Co.,Ltd.

WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190614