CN109189506A - A kind of method and device based on PHP asynchronous process task - Google Patents

A kind of method and device based on PHP asynchronous process task Download PDF

Info

Publication number
CN109189506A
CN109189506A CN201810886998.8A CN201810886998A CN109189506A CN 109189506 A CN109189506 A CN 109189506A CN 201810886998 A CN201810886998 A CN 201810886998A CN 109189506 A CN109189506 A CN 109189506A
Authority
CN
China
Prior art keywords
task
subprocess
waiting
waiting task
code
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
CN201810886998.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 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 CN201810886998.8A priority Critical patent/CN109189506A/en
Publication of CN109189506A publication Critical patent/CN109189506A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms
    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of method and device based on PHP asynchronous process task, this method includes multiple subprocess based on HyperText Preprocessor PHP building specified quantity;When receiving waiting task, compares the quantity of the waiting task received and the size of specified quantity, obtain comparison result;From the multiple subprocess of specified quantity open according to comparison result and based on preset rules the subprocess of respective numbers;Waiting task identical with the subprocess quantity opened is obtained from the waiting task received, and distribute into the subprocess opened accordingly, waiting task assigned by pre-set readjustment processing function asynchronous execution is utilized in the subprocess of unlatching.The embodiment of the present invention can neatly control the unlatching quantity of subprocess, and select corresponding subprocess processing waiting task, and the execution waiting task for the subprocess asynchronous parallel respectively opened can effectively improve the processing speed and treatment effeciency of task.

Description

A kind of method and device based on PHP asynchronous process task
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and dress based on PHP asynchronous process task It sets.
Background technique
Currently, with the continuous development of computer technology and big data technology, it will usually encounter needs and concurrently be located The problem of reason, such as the processing for task queue, message queue etc..
In the prior art, PHP (Hypertext Preprocessor, HyperText Preprocessor) is an one process in itself Program, however, higher treatment effeciency is unable to reach using one process processing data, during task dispatching, if simple makes Multi-process is opened with PHP, during carrying out concurrent processing data, still can there are very much, past contact needs These problems are made up using other language.
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 a kind of method and device based on PHP asynchronous process task of problem.
One side according to the present invention additionally provides a kind of method based on PHP asynchronous process task, comprising:
Based on multiple subprocess of HyperText Preprocessor PHP building specified quantity, the subprocess is used for asynchronous execution The waiting task;
When receiving waiting task, compare the big of the quantity of the waiting task received and the specified quantity It is small, obtain comparison result;
Respective counts are opened from multiple subprocess of the specified quantity according to the comparison result and based on preset rules The subprocess of amount;
The waiting task that asynchronous execution receives in the subprocess of unlatching.
Optionally, it is opened from multiple subprocess of the specified quantity according to the comparison result and based on preset rules The subprocess of respective numbers, comprising:
If the quantity that the comparison result is the waiting task received is less than the specified quantity, specified from described The subprocess of quantity identical as task quantity is opened in multiple subprocess of quantity;
If the quantity that the comparison result is the waiting task received is greater than the specified quantity, the finger is opened The subprocess of fixed number amount.
Optionally, the waiting task that asynchronous execution receives in the subprocess of unlatching, comprising:
Waiting task identical with the subprocess quantity opened is transferred from the waiting task received, by what is transferred Waiting task is respectively allocated in corresponding subprocess, wherein the subprocess of a unlatching distributes a waiting task;
Using to be processed assigned by pre-set readjustment processing function asynchronous execution in the subprocess of unlatching Business.
Optionally, further includes:
Detect the execution state of waiting task in subprocess;
When detecting that the waiting task at least one subprocess is finished, for described at least one subprocess point With other waiting tasks.
Optionally, when detecting that the waiting task at least one subprocess is finished, for it is described at least one Subprocess distributes other waiting tasks, comprising:
If the quantity of the waiting task received is less than the specified quantity, and opens quantity identical as task quantity Subprocess, then when detecting that the waiting task at least one subprocess is finished, and new to be processed receiving When task, new waiting task is distributed at least one described subprocess;
If the quantity of the waiting task received be greater than the specified quantity, and open the specified quantity son into Journey obtains then when detecting that the waiting task at least one subprocess is finished from receiving in waiting task The waiting task that did not executed in subprocess is simultaneously distributed at least one described subprocess, described in receive to Processing task is all finished.
Optionally, the method also includes:
To-be-processed task list is created, the waiting task received is cached into the to-be-processed task list;
It is that the waiting task distributes sole task code, and delays in the to-be-processed task list based on preset algorithm Deposit the corresponding relationship of the waiting task He its sole task code;
The task code that the waiting task is obtained from the to-be-processed task list, according to the task code building to Handle task queue.
Optionally, waiting task identical with the subprocess quantity opened is transferred from the waiting task received, The waiting task transferred is respectively allocated in corresponding subprocess, comprising:
The task code of quantity identical as the subprocess quantity opened is transferred from the inactive queue of task;
According to the task code transferred corresponding waiting task is extracted from the to-be-processed task list, by extraction to Processing task is distributed into the subprocess opened accordingly.
Optionally, the preset algorithm includes class snowflake algorithm.
Optionally, to be processed from receiving when detecting that the waiting task at least one subprocess is finished The waiting task not executed in subprocess is obtained in task and is distributed at least one described subprocess, until receiving To the waiting task be all finished, comprising:
When detecting that the waiting task at least one subprocess is finished, for the waiting task being finished Corresponding task code addition task completes label;
Task code and task action result corresponding with the task code after addition task to be completed to label are cached to pre- If task is completed in result set, and addition task is completed the task code after marking and is deleted from the inactive queue of task;
Quantity is transferred from the inactive queue of task is not more than the subprocess quantity finished to task execution to be processed Task code;
According to the task code transferred corresponding waiting task is extracted from the to-be-processed task list, by extraction to Processing task is distributed at least one corresponding described subprocess, until the waiting task received has all executed Finish.
Optionally, after the waiting task received is all finished by the subprocess using unlatching, further includes:
By the task complete result set in task code and task action result corresponding with the task code be back to The sender of the waiting task.
Another aspect according to the present invention additionally provides a kind of device based on PHP asynchronous process task, comprising:
Module is constructed, suitable for multiple subprocess based on HyperText Preprocessor PHP building specified quantity, the subprocess For waiting task described in asynchronous execution;
Comparison module, suitable for when receiving waiting task, compare the quantity of the waiting task received with it is described The size of specified quantity, obtains comparison result;
Opening module, suitable for according to the comparison result and based on preset rules from multiple subprocess of the specified quantity The middle subprocess for opening respective numbers;
Execution module, suitable for the waiting task that asynchronous execution receives in the subprocess of unlatching.
Optionally, the opening module, is further adapted for:
If the quantity that the comparison result is the waiting task received is less than the specified quantity, specified from described The subprocess of quantity identical as task quantity is opened in multiple subprocess of quantity;
If the quantity that the comparison result is the waiting task received is greater than the specified quantity, the finger is opened The subprocess of fixed number amount.
Optionally, the execution module, is further adapted for:
Waiting task identical with the subprocess quantity opened is transferred from the waiting task received, by what is transferred Waiting task is respectively allocated in corresponding subprocess, wherein the subprocess of a unlatching distributes a waiting task;
Using to be processed assigned by pre-set readjustment processing function asynchronous execution in the subprocess of unlatching Business.
Optionally, further include detection module, be suitable for:
Detect the execution state of waiting task in subprocess;
When detecting that the waiting task at least one subprocess is finished, for described at least one subprocess point With other waiting tasks.
Optionally, if the comparison module relatively learns that the quantity of the waiting task received is less than the specified number Amount, and the opening module opens the subprocess of quantity identical as task quantity, then when the detection module detects at least Waiting task in one subprocess is finished, and when receiving new waiting task, the execution module, also suitable In distributing new waiting task at least one described subprocess;
If the comparison module relatively learns that the quantity of the waiting task received is greater than the specified quantity, and described Opening module opens the subprocess of the specified quantity, then when the detection module detect at least one subprocess to Processing task execution is when finishing, the execution module, is further adapted for not holding in subprocess from receiving to obtain in waiting task The waiting task gone simultaneously is distributed at least one described subprocess, until the waiting task received is all held Row finishes.
Optionally, described device further include:
Creation module is suitable for creation to-be-processed task list, the waiting task received is cached to described to be processed In task list;
Distribution module is suitable for being waiting task distribution sole task code based on preset algorithm, and described wait locate The corresponding relationship of the waiting task He its sole task code is cached in reason task list;
Module is obtained, suitable for obtaining the task code of the waiting task from the to-be-processed task list, according to institute State task code building inactive queue of task.
Optionally, the execution module, is further adapted for:
The task code of quantity identical as the subprocess quantity opened is transferred from the inactive queue of task;
According to the task code transferred corresponding waiting task is extracted from the to-be-processed task list, by extraction to Processing task is distributed into the subprocess opened accordingly.
Optionally, the preset algorithm includes class snowflake algorithm.
Optionally, the execution module, is further adapted for:
When detection module detects that the waiting task at least one subprocess is finished, for be finished to Task code corresponding to processing task adds task and completes label;
Task code and task action result corresponding with the task code after addition task to be completed to label are cached to pre- If task is completed in result set, and addition task is completed the task code after marking and is deleted from the inactive queue of task;
Quantity is transferred from the inactive queue of task is not more than the subprocess quantity finished to task execution to be processed Task code;
According to the task code transferred corresponding waiting task is extracted from the to-be-processed task list, by extraction to Processing task is distributed at least one corresponding described subprocess, until the waiting task received has all executed Finish.
Optionally, described device further include:
Return module, suitable for all being held the waiting task received using the subprocess of unlatching when the execution module After row finishes, the task is completed to the task code and task action result corresponding with task code return in result set To the sender of the waiting task.
Another aspect according to the present invention, additionally provides a kind of computer storage medium, and the computer storage medium is deposited Computer program code is contained, when the computer program code is run on the computing device, the calculating equipment is caused to be held Method based on PHP asynchronous process task described in row any embodiment above.
According to the present invention in another aspect, additionally providing a kind of calculating equipment, comprising: processor;It is stored with computer journey The memory of sequence code;When the computer program code is run by the processor, the calculating equipment is caused to execute Method based on PHP asynchronous process task described in literary any embodiment.
In embodiments of the present invention, firstly, multiple subprocess based on PHP building specified quantity, subprocess is for receiving Waiting task and asynchronous execution waiting task.When receiving waiting task, compare the waiting task received The size of quantity and specified quantity, to obtain comparison result.In turn, according to comparison result and based on preset rules from specified number The subprocess of respective numbers is opened in multiple subprocess of amount.Finally, being obtained from the waiting task received and unlatching The identical waiting task of subprocess quantity, and distribute into the subprocess opened accordingly, it is asynchronous in the subprocess of unlatching Execute the waiting task received.As a result, the embodiment of the present invention by comparing waiting task quantity and building it is multiple Size relation between the specified quantity of subprocess can neatly control the unlatching quantity of subprocess, and select corresponding son Process handles waiting task, and the corresponding waiting task of the execution for the subprocess asynchronous parallel respectively opened can effectively improve The processing speed and treatment effeciency of task, also, by control subprocess unlatchings quantity can also make construct each height into Journey is fully utilized, and improves the utilization rate of subprocess, and then improve the utilization rate of HyperText Preprocessor PHP.
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.
According to the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will be brighter The above and other objects, advantages and features 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 the flow diagram of the method according to an embodiment of the invention based on PHP asynchronous process task;
Fig. 2 shows it is according to an embodiment of the invention about detection subprocess in waiting task execution state and The process schematic that waiting task is allocated;
Fig. 3 shows the structural schematic diagram of the device according to an embodiment of the invention based on PHP asynchronous process task;
Fig. 4 shows the structural representation of the device in accordance with another embodiment of the present invention based on PHP asynchronous process task Figure;And
Fig. 5 shows the structural representation of the device in accordance with another embodiment of the present invention based on PHP asynchronous process task Figure.
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.
In order to solve the above technical problems, the embodiment of the invention provides a kind of method based on PHP asynchronous process task, it should Method can be applied to push (i.e. information on services or push-in information) service, alert service project, ES (embedded Storage, embedded storage system) etc. in scenes.Fig. 1 shows according to an embodiment of the invention based on the asynchronous place PHP The flow diagram of the method for reason task.Referring to Fig. 1, this method includes at least step S102 to step S108.
Step S102, based on multiple subprocess of HyperText Preprocessor PHP building specified quantity, subprocess is for asynchronous Execute waiting task.
In the step, the specified quantity of subprocess can performance according to HyperText Preprocessor PHP, current loading condition At least one index in determines the specified quantity for needing the multiple subprocess constructed.
Step S104 compares the quantity and specified quantity of the waiting task received when receiving waiting task Size, obtain comparison result.
Step S106 according to comparison result and opens respective counts from multiple subprocess of specified quantity based on preset rules The subprocess of amount.
Step S108, the waiting task that asynchronous execution receives in the subprocess of unlatching.
The embodiment of the present invention is by comparing between the quantity of waiting task and the specified quantity of multiple subprocess of building Size relation, can neatly control the unlatching quantity of subprocess, and select corresponding subprocess processing waiting task, respectively The corresponding waiting task of execution of the subprocess asynchronous parallel of unlatching can effectively improve the processing speed and processing of task Efficiency, by specifically test it is found that when have the task of 100 milliseconds of 10,000 time-consumings using asynchronous multitask mode of the invention into Row processing, consumed total duration only need 160 seconds or so.Also, structure can also be made by the unlatching quantity of control subprocess The each subprocess built is fully utilized, and improves the utilization rate of subprocess, and then improve HyperText Preprocessor PHP's Utilization rate.
Step S106 is seen above, in an embodiment of the present invention, if the quantity of the waiting task received and specified Quantity is different, then the subprocess quantity opened may also be different, and the quantity of the waiting task of synchronization execution It is different.
If the quantity that obtained comparison result is the waiting task received is less than specified quantity, from specified quantity The subprocess of quantity identical as task quantity is opened in multiple subprocess.In turn, the multiple waiting tasks that can will be received It is handled in each subprocess while asynchronous parallel, specifically, transferring the multiple waiting tasks received (with unlatching Subprocess quantity is identical), the waiting task transferred is respectively allocated in corresponding subprocess, and one unlatching son into Journey distributes a waiting task, then, handles function asynchronous process using pre-set readjustment in the subprocess of unlatching Assigned waiting task.
For example, the quantity of the waiting task received is 5, the specified quantity of subprocess is 7, then 5 can be opened 5 waiting tasks are respectively allocated in each subprocess of unlatching by subprocess, and one to be processed is distributed in each subprocess Business, in turn, is handled 5 waiting tasks using 5 subprocess of unlatching are asynchronous.Here the quantity of waiting task and The specified quantity of subprocess is schematically, not constitute specific restriction to the present invention program.
If the quantity that obtained comparison result is the waiting task received is greater than specified quantity, specified quantity is opened Subprocess.In turn, the waiting task that asynchronous execution receives in the subprocess of unlatching, specifically, from receive to The waiting task (identical as the subprocess quantity of unlatching) that specified quantity is transferred in processing task, by the specified quantity transferred Waiting task is respectively allocated in the subprocess of the specified quantity of unlatching, and the subprocess of a unlatching distributes one wait locate Reason task, then, waiting task assigned by the subprocess asynchronous execution respectively opened.
For example, the quantity of the waiting task received is 15, the specified quantity of subprocess is 7, then, in order to guarantee it All subprocess of preceding building are fully utilized, without there is idle subprocess, to improve waiting task The subprocess of building can be all turned on by treatment effeciency, that is, 7 subprocess be opened, from 15 waiting tasks received In extract 7 waiting tasks, and 7 waiting tasks are respectively allocated in each subprocess of unlatching respectively, every height A waiting task is distributed in process in turn to handle 7 waiting tasks using 7 subprocess of unlatching are asynchronous. When this 7 waiting tasks, which execute, to be completed, the subprocess of unlatching is recycled successively to execute remaining waiting task, hereinafter will This can be described in detail.Here the specified quantity of the quantity of waiting task and subprocess is schematical, to this Scheme of the invention does not constitute specific restriction.
Step S108 is seen above, in an embodiment of the present invention, this programme can also detect to be processed in subprocess constantly The execution state of task, when detecting that the waiting task at least one subprocess is finished, be at least one son into Journey distributes other waiting tasks.Wherein, at least one subprocess distribution other waiting tasks also with waiting task Quantity it is related with the subprocess quantity of building.
A kind of situation if the quantity of the waiting task received is less than specified quantity, and opens and task quantity phase With the subprocess of quantity, at this point, all waiting tasks received are the allocated into subprocess, therefore, detecting It, can be by new wait locate when being finished to the waiting task at least one subprocess, and receiving new waiting task Reason task is distributed at least one subprocess.Certainly, if detecting, the waiting task at least one subprocess has been executed Finish, but do not receive new waiting task, this at least one subprocess can at this time be in idle condition.
Another situation if the quantity of the waiting task received is greater than specified quantity, and opens specified quantity Subprocess, although having had been switched on whole subprocess, due to the quantity of waiting task it is more and can not primary distribution It is complete, therefore, when detecting that the waiting task at least one subprocess is finished, obtained from receiving in waiting task It takes the waiting task not executed in subprocess and distributes at least one subprocess, until to be processed received Business is all finished.
In conjunction with foregoing embodiments, the quantity of the waiting task received is 15, and the specified quantity of subprocess is 7, first 7 subprocess are opened, 7 waiting tasks are extracted from 15 waiting tasks received and are respectively allocated to unlatching Each subprocess in.When detecting the presence of 3 waiting tasks execution completions, mentioned again from remaining 8 waiting tasks 3 waiting tasks are taken, and are respectively allocated in idle subprocess.When detecting again after a period of time and there are 2 A waiting task executes completion, then extracts 2 waiting tasks again from remaining 5 waiting tasks, and distribute respectively It in idle subprocess, so recycles, until 15 waiting tasks all execute completion.Here waiting task The specified quantity of number of executions and subprocess is schematically, not constitute specific restriction to the present invention program.
In an embodiment of the present invention, by creation to-be-processed task list and inactive queue of task can also be constructed Mode, thus keep waiting task processed more orderly and more efficiently.
Specifically, firstly, creation to-be-processed task list, the waiting task received is cached to waiting task and is arranged In table.It then, is that waiting task distributes sole task code, and caches in to-be-processed task list wait locate based on preset algorithm The corresponding relationship of reason task and its sole task code.Finally, the task code of waiting task is obtained from to-be-processed task list, Inactive queue of task is constructed according to task code.Wherein, preset algorithm can use class snowflake algorithm, can also use it certainly His algorithm, the embodiment of the present invention do not do specific restriction to this.
The inactive queue of task of to-be-processed task list and building based on creation, from the waiting task received The identical waiting task of subprocess quantity transferred and opened, by the waiting task transferred be respectively allocated to corresponding son into Specific implementation process in journey may is that firstly, transferring number identical as the subprocess quantity opened from inactive queue of task The task code of amount;Then, the corresponding relationship according to the task code and waiting task transferred is extracted from to-be-processed task list Corresponding waiting task distributes the waiting task of extraction into the subprocess opened accordingly.
In addition, the inactive queue of task of to-be-processed task list and building based on creation, the present invention also provides passes The execution state of waiting task and the detailed process that waiting task is allocated in detection subprocess.The process is at least Including step S202 to step S210.
Step S202 detects the execution state of waiting task in subprocess, if detecting at least one subprocess Waiting task is finished, and the corresponding task code of waiting task to be finished adds task and completes label.
Step S204, task code and task action result corresponding with task code after the task of addition to be completed to label cache It is completed in result set to preset task.
In this step, the corresponding task code of task and implementing result that processing is completed are cached to a task and completes knot Fruit is concentrated, and realizes the centralized management to task with can be convenient.
Step S206, the task code after addition task to be completed to label are deleted from inactive queue of task.
Step S208 transfers quantity from inactive queue of task and is not more than the subprocess finished to task execution to be processed The task code of quantity.
In this step, if remaining task number of codes is executed more than or equal to waiting task in inactive queue of task The subprocess quantity finished then transfers the subprocess quantity equal numbers being finished with waiting task from inactive queue of task The task code of amount;If remaining task number of codes is less than the subprocess number that waiting task is finished in inactive queue of task Amount, then transfer whole task codes from inactive queue of task.
Step S210 extracts corresponding waiting task according to the task code transferred from to-be-processed task list, will mention The waiting task taken is distributed at least one corresponding subprocess, until the waiting task received has all executed Finish.
In this step, it is corresponding relationship according to the task code and waiting task transferred in to-be-processed task list To extract corresponding waiting task.
In an embodiment of the present invention, when the waiting task received is all finished by the subprocess using unlatching It later, can also be complete by task in order to make the sender of waiting task timely recognize the disposition of waiting task At in result set task code and task action result corresponding with task code be back to the sender of waiting task.For example, The task action result in result set can be completed using await function call task.
The embodiment of the invention also provides the class libraries of the method based on PHP asynchronous process task of realization, include in the class libraries Attribute and behavior, wherein attribute includes following content:
+ workNum:int=20
+handle:fuc
-pids:array
-unDoneTasklds:array
-results:array
Wherein, int is integer, initial value 20, fuc representative function, and "+" represents open, and "-" represents non-exploitation formula 's.
Behavior includes following content:
+addTask(tasks,handler):array
+await():array
-checkSubProcess()
-forkProcess()
-writeResult()
-readResult()
-genTaskld()
Wherein, "+" represents open, and "-" represents non-exploitation formula.
In embodiments of the present invention, the realization generation of a method specifically based on PHP asynchronous process task is additionally provided Code, code are as follows:
Based on the same inventive concept, the embodiment of the invention also provides a kind of devices based on PHP asynchronous process task.Figure 3 show the structural schematic diagram of the device according to an embodiment of the invention based on PHP asynchronous process task.Referring to Fig. 3, base Include building module 310, comparison module 320, opening module 330 and execution module in the device 300 of PHP asynchronous process task 340。
Now introduce each composition of the device 300 based on PHP asynchronous process task of the embodiment of the present invention or the function of device And the connection relationship between each section:
Module 310 is constructed, suitable for multiple subprocess based on HyperText Preprocessor PHP building specified quantity, subprocess For asynchronous execution waiting task;
Comparison module 320, with building module 310 couple, suitable for when receiving waiting task, compare receive to The quantity of processing task and the size of specified quantity, obtain comparison result;
Opening module 330 is coupled with comparison module 320, is suitable for according to comparison result and is based on preset rules from specified number The subprocess of respective numbers is opened in multiple subprocess of amount;
Execution module 340 is coupled with opening module 330, suitable in the subprocess of unlatching asynchronous execution receive to Processing task.
In an embodiment of the present invention, opening module 330 is further adapted for, if comparison result is the waiting task received Quantity is less than specified quantity, then the subprocess of quantity identical as task quantity is opened from multiple subprocess of specified quantity.If Comparison result is that the quantity of the waiting task received is greater than specified quantity, then opens the subprocess of specified quantity.
In an embodiment of the present invention, execution module 340 is further adapted for, and transfers and opens from the waiting task received The identical waiting task of subprocess quantity, the waiting task transferred is respectively allocated in corresponding subprocess, wherein The subprocess of one unlatching distributes a waiting task, then, using at pre-set readjustment in the subprocess of unlatching Manage waiting task assigned by function asynchronous execution.
Referring to fig. 4, in an embodiment of the present invention, the device 300 based on PHP asynchronous process task is in addition to comprising above-mentioned each It can also include detection module 341 except module.
Detection module 341 is coupled with execution module 340, is adapted to detect for the execution state of waiting task in subprocess, when When detecting that the waiting task at least one subprocess is finished, other to be processed is distributed at least one subprocess Business.
In an embodiment of the present invention, if comparison module 320, which compares, learns that the quantity of the waiting task received is less than Specified quantity, and opening module 330 opens the subprocess of quantity identical as task quantity, then when detection module 341 detects Waiting task at least one subprocess is finished, and when receiving new waiting task, and execution module 340 is also It is suitable for, new waiting task is distributed at least one subprocess.If comparison module 320 compare learn receive wait locate The quantity of reason task is greater than specified quantity, and opening module 330 opens the subprocess of specified quantity, then when detection module 341 When detecting that the waiting task at least one subprocess is finished, execution module 340 is further adapted for, to be processed from receiving The waiting task not executed in subprocess is obtained in task and is distributed at least one subprocess, until what is received Waiting task is all finished.
Device the embodiment of the invention also provides another kind based on PHP asynchronous process task.Fig. 5 is shown according to this hair The structural schematic diagram of the device based on PHP asynchronous process task of another bright embodiment.Referring to Fig. 5, it is based on PHP asynchronous process The device 300 of task is in addition to including building module 310, comparison module 320, opening module 330, execution module 340 and detection Except module 341, further includes creation module 350, distribution module 360, obtains module 370 and return module 380.
Creation module 350 is coupled with comparison module 320, is suitable for creation to-be-processed task list, when receiving to be processed When business, the waiting task received is cached into to-be-processed task list.
Distribution module 360 is coupled with creation module 350, is suitable for being that waiting task distribution is uniquely appointed based on preset algorithm Be engaged in code, and in to-be-processed task list cache waiting task and its sole task code corresponding relationship.Wherein, preset algorithm Including class snowflake algorithm.
Module 370 is obtained, is coupled with distribution module 360, suitable for obtaining waiting task from to-be-processed task list Task code constructs inactive queue of task according to task code.
Return module 380 is coupled with execution module 340, suitable for that will be received when execution module 340 using the subprocess opened To waiting task be all finished after, by task complete result set in task code and task corresponding with task code Implementing result is back to the sender of waiting task.
In an embodiment of the present invention, execution module 340 is further adapted for, and the son with unlatching is transferred from inactive queue of task The task code of the identical quantity of number of processes.Corresponding to be processed is extracted from to-be-processed task list according to the task code transferred Business, the waiting task of extraction is distributed into the subprocess opened accordingly.
In an embodiment of the present invention, execution module 340 is further adapted for, firstly, when detection module 341 detects at least one When waiting task in subprocess is finished, it is complete that task is added for task code corresponding to the waiting task that is finished At label.Then, task code and task action result corresponding with task code after addition task to be completed to label are cached to pre- If task is completed in result set, and addition task is completed the task code after marking and is deleted from inactive queue of task.Then, The task code that quantity is not more than the subprocess quantity finished to task execution to be processed is transferred from inactive queue of task.Most Afterwards, corresponding waiting task is extracted from to-be-processed task list according to the task code transferred, by the waiting task of extraction Distribution is at least one corresponding subprocess, until the waiting task received is all finished.
Another aspect according to the present invention, additionally provides a kind of computer storage medium, and computer storage medium is stored with Computer program code causes to calculate equipment execution above arbitrarily in fact when computer program code is run on the computing device Apply the method based on PHP asynchronous process task of example.
According to the present invention in another aspect, additionally providing a kind of calculating equipment, comprising: processor;It is stored with computer journey The memory of sequence code;When computer program code is run by processor, cause to calculate equipment execution any embodiment above The method based on PHP asynchronous process task.
According to the combination of any one above-mentioned preferred embodiment or multiple preferred embodiments, the embodiment of the present invention can reach It is following the utility model has the advantages that
In embodiments of the present invention, firstly, multiple subprocess based on PHP building specified quantity, subprocess is for receiving Waiting task and asynchronous execution waiting task.When receiving waiting task, compare the waiting task received The size of quantity and specified quantity, to obtain comparison result.In turn, according to comparison result and based on preset rules from specified number The subprocess of respective numbers is opened in multiple subprocess of amount.Finally, being obtained from the waiting task received and unlatching The identical waiting task of subprocess quantity, and distribute into the subprocess opened accordingly, it is asynchronous in the subprocess of unlatching Execute waiting task.The embodiment of the present invention is by comparing the quantity of waiting task and multiple subprocess of building as a result, Size relation between specified quantity, can neatly control the unlatching quantity of subprocess, and corresponding subprocess is selected to handle Waiting task, the corresponding waiting task of execution for the subprocess asynchronous parallel respectively opened can effectively improve the place of task Speed and treatment effeciency are managed, also, each subprocess of building can also be made to be filled by the unlatching quantity of control subprocess The utilization divided improves the utilization rate of subprocess, and then improves the utilization rate of HyperText Preprocessor PHP.
It is apparent to those skilled in the art that the specific work of the system of foregoing description, device and unit Make process, can refer to corresponding processes in the foregoing method embodiment, for brevity, does not repeat separately herein.
In addition, each functional unit in each embodiment of the present invention can be physically independent, can also two or More than two functional units integrate, and can be all integrated in a processing unit with all functional units.It is above-mentioned integrated Functional unit both can take the form of hardware realization, can also be realized in the form of software or firmware.
Those of ordinary skill in the art will appreciate that: if the integrated functional unit is realized and is made in the form of software It is independent product when selling or using, can store in a computer readable storage medium.Based on this understanding, Technical solution of the present invention is substantially or all or part of the technical solution can be embodied in the form of software products, The computer software product is stored in a storage medium comprising some instructions, with so that calculating equipment (such as Personal computer, server or network equipment etc.) various embodiments of the present invention the method is executed when running described instruction All or part of the steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM), random access memory Device (RAM), the various media that can store program code such as magnetic or disk.
Alternatively, realizing that all or part of the steps of preceding method embodiment can be (all by the relevant hardware of program instruction Such as personal computer, the calculating equipment of server or network equipment etc.) it completes, described program instruction can store in one In computer-readable storage medium, when described program instruction is executed by the processor of calculating equipment, the calculating equipment is held The all or part of the steps of row various embodiments of the present invention the method.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, those skilled in the art should understand that: at this Within the spirit and principle of invention, it is still possible to modify the technical solutions described in the foregoing embodiments or right Some or all of the technical features are equivalently replaced;And these are modified or replaceed, and do not make corresponding technical solution de- From protection scope of the present invention.
The embodiment of the invention provides A1, a kind of method based on PHP asynchronous process task, comprising:
Based on multiple subprocess of HyperText Preprocessor PHP building specified quantity, the subprocess is used for asynchronous execution The waiting task;
When receiving waiting task, compare the big of the quantity of the waiting task received and the specified quantity It is small, obtain comparison result;
Respective counts are opened from multiple subprocess of the specified quantity according to the comparison result and based on preset rules The subprocess of amount;
The waiting task that asynchronous execution receives in the subprocess of unlatching.
A2, method according to a1, wherein according to the comparison result and be based on preset rules from the specified quantity Multiple subprocess in open respective numbers subprocess, comprising:
If the quantity that the comparison result is the waiting task received is less than the specified quantity, specified from described The subprocess of quantity identical as task quantity is opened in multiple subprocess of quantity;
If the quantity that the comparison result is the waiting task received is greater than the specified quantity, the finger is opened The subprocess of fixed number amount.
A3, the method according to A2, wherein the waiting task that asynchronous execution receives in the subprocess of unlatching, Include:
Waiting task identical with the subprocess quantity opened is transferred from the waiting task received, by what is transferred Waiting task is respectively allocated in corresponding subprocess, wherein the subprocess of a unlatching distributes a waiting task;
Using to be processed assigned by pre-set readjustment processing function asynchronous execution in the subprocess of unlatching Business.
A4, method according to a3, wherein further include:
Detect the execution state of waiting task in subprocess;
When detecting that the waiting task at least one subprocess is finished, for described at least one subprocess point With other waiting tasks.
A5, method according to a4, wherein when detecting that the waiting task at least one subprocess is finished When, other waiting tasks are distributed at least one described subprocess, comprising:
If the quantity of the waiting task received is less than the specified quantity, and opens quantity identical as task quantity Subprocess, then when detecting that the waiting task at least one subprocess is finished, and new to be processed receiving When task, new waiting task is distributed at least one described subprocess;
If the quantity of the waiting task received be greater than the specified quantity, and open the specified quantity son into Journey obtains then when detecting that the waiting task at least one subprocess is finished from receiving in waiting task The waiting task that did not executed in subprocess is simultaneously distributed at least one described subprocess, described in receive to Processing task is all finished.
A6, method according to a5, wherein further include:
To-be-processed task list is created, the waiting task received is cached into the to-be-processed task list;
It is that the waiting task distributes sole task code, and delays in the to-be-processed task list based on preset algorithm Deposit the corresponding relationship of the waiting task He its sole task code;
The task code that the waiting task is obtained from the to-be-processed task list, according to the task code building to Handle task queue.
A7, the method according to A6, wherein the subprocess quantity with unlatching is transferred from the waiting task received The waiting task transferred is respectively allocated in corresponding subprocess by identical waiting task, comprising:
The task code of quantity identical as the subprocess quantity opened is transferred from the inactive queue of task;
According to the task code transferred corresponding waiting task is extracted from the to-be-processed task list, by extraction to Processing task is distributed into the subprocess opened accordingly.
A8, the method according to A6 or A7, wherein the preset algorithm includes class snowflake algorithm.
A9, the method according to A6 or A7, wherein when detecting that waiting task at least one subprocess executes When finishing, from receive obtained in waiting task the waiting task not executed in subprocess and distribute to it is described at least In one subprocess, until the waiting task received is all finished, comprising:
When detecting that the waiting task at least one subprocess is finished, for the waiting task being finished Corresponding task code addition task completes label;
Task code and task action result corresponding with the task code after addition task to be completed to label are cached to pre- If task is completed in result set, and addition task is completed the task code after marking and is deleted from the inactive queue of task;
Quantity is transferred from the inactive queue of task is not more than the subprocess quantity finished to task execution to be processed Task code;
According to the task code transferred corresponding waiting task is extracted from the to-be-processed task list, by extraction to Processing task is distributed at least one corresponding described subprocess, until the waiting task received has all executed Finish.
A10, the method according to A9, wherein when the subprocess using unlatching is whole by the waiting task received After being finished, further includes:
By the task complete result set in task code and task action result corresponding with the task code be back to The sender of the waiting task.
B11, a kind of device based on PHP asynchronous process task, comprising:
Module is constructed, suitable for multiple subprocess based on HyperText Preprocessor PHP building specified quantity, the subprocess For waiting task described in asynchronous execution;
Comparison module, suitable for when receiving waiting task, compare the quantity of the waiting task received with it is described The size of specified quantity, obtains comparison result;
Opening module, suitable for according to the comparison result and based on preset rules from multiple subprocess of the specified quantity The middle subprocess for opening respective numbers;
Execution module, suitable for the waiting task that asynchronous execution receives in the subprocess of unlatching.
B12, the device according to B11, wherein the opening module is further adapted for:
If the quantity that the comparison result is the waiting task received is less than the specified quantity, specified from described The subprocess of quantity identical as task quantity is opened in multiple subprocess of quantity;
If the quantity that the comparison result is the waiting task received is greater than the specified quantity, the finger is opened The subprocess of fixed number amount.
B13, device according to b12, wherein the execution module is further adapted for:
Waiting task identical with the subprocess quantity opened is transferred from the waiting task received, by what is transferred Waiting task is respectively allocated in corresponding subprocess, wherein the subprocess of a unlatching distributes a waiting task;
Using to be processed assigned by pre-set readjustment processing function asynchronous execution in the subprocess of unlatching Business.
B14, device according to b13, wherein further include detection module, be suitable for:
Detect the execution state of waiting task in subprocess;
When detecting that the waiting task at least one subprocess is finished, for described at least one subprocess point With other waiting tasks.
B15, device according to b14, wherein
If the comparison module relatively learns that the quantity of the waiting task received is less than the specified quantity, and described Opening module opens the subprocess of quantity identical as task quantity, then when the detection module detects at least one subprocess In waiting task be finished, and when receiving new waiting task, the execution module, be further adapted for by it is new to Processing task is distributed at least one described subprocess;
If the comparison module relatively learns that the quantity of the waiting task received is greater than the specified quantity, and described Opening module opens the subprocess of the specified quantity, then when the detection module detect at least one subprocess to Processing task execution is when finishing, the execution module, is further adapted for not holding in subprocess from receiving to obtain in waiting task The waiting task gone simultaneously is distributed at least one described subprocess, until the waiting task received is all held Row finishes.
B16, the device according to B15, wherein further include:
Creation module is suitable for creation to-be-processed task list, the waiting task received is cached to described to be processed In task list;
Distribution module is suitable for being waiting task distribution sole task code based on preset algorithm, and described wait locate The corresponding relationship of the waiting task He its sole task code is cached in reason task list;
Module is obtained, suitable for obtaining the task code of the waiting task from the to-be-processed task list, according to institute State task code building inactive queue of task.
B17, the device according to B16, wherein the execution module is further adapted for:
The task code of quantity identical as the subprocess quantity opened is transferred from the inactive queue of task;
According to the task code transferred corresponding waiting task is extracted from the to-be-processed task list, by extraction to Processing task is distributed into the subprocess opened accordingly.
B18, the device according to B16 or B17, wherein the preset algorithm includes class snowflake algorithm.
B19, the device according to B16 or B17, wherein the execution module is further adapted for:
When the detection module detects that the waiting task at least one subprocess is finished, to be finished Waiting task corresponding to task code addition task complete label;
Task code and task action result corresponding with the task code after addition task to be completed to label are cached to pre- If task is completed in result set, and addition task is completed the task code after marking and is deleted from the inactive queue of task;
Quantity is transferred from the inactive queue of task is not more than the subprocess quantity finished to task execution to be processed Task code;
According to the task code transferred corresponding waiting task is extracted from the to-be-processed task list, by extraction to Processing task is distributed at least one corresponding described subprocess, until the waiting task received has all executed Finish.
B20, the device according to B19, wherein further include:
Return module, suitable for all being held the waiting task received using the subprocess of unlatching when the execution module After row finishes, the task is completed to the task code and task action result corresponding with task code return in result set To the sender of the waiting task.
C21, a kind of computer storage medium, the computer storage medium is stored with computer program code, when described When computer program code is run on the computing device, causing the calculating equipment to execute, A1-A10 is described in any item to be based on The method of PHP asynchronous process task.
E22, a kind of calculating equipment, comprising: processor;It is stored with the memory of computer program code;When the calculating When machine program code is run by the processor, the calculating equipment is caused to execute A1-A10 described in any item different based on PHP The method for walking processing task.

Claims (10)

1. a kind of method based on PHP asynchronous process task, comprising:
Based on multiple subprocess of HyperText Preprocessor PHP building specified quantity, the subprocess is for described in asynchronous execution Waiting task;
When receiving waiting task, compares the quantity of the waiting task received and the size of the specified quantity, obtain To comparison result;
Respective numbers are opened from multiple subprocess of the specified quantity according to the comparison result and based on preset rules Subprocess;
The waiting task that asynchronous execution receives in the subprocess of unlatching.
2. according to the method described in claim 1, wherein, according to the comparison result and being based on preset rules from the specified number The subprocess of respective numbers is opened in multiple subprocess of amount, comprising:
If the quantity that the comparison result is the waiting task received is less than the specified quantity, from the specified quantity Multiple subprocess in open the subprocess of identical as task quantity quantity;
If the quantity that the comparison result is the waiting task received is greater than the specified quantity, the specified number is opened The subprocess of amount.
3. according to the method described in claim 2, wherein, asynchronous execution receives in the subprocess of unlatching to be processed Business, comprising:
Waiting task identical with the subprocess quantity opened is transferred from the waiting task received, will be transferred wait locate Reason task is respectively allocated in corresponding subprocess, wherein the subprocess of a unlatching distributes a waiting task;
Waiting task assigned by pre-set readjustment processing function asynchronous execution is utilized in the subprocess of unlatching.
4. according to the method described in claim 3, wherein, further includes:
Detect the execution state of waiting task in subprocess;
When detecting that the waiting task at least one subprocess is finished, it is distributed at least one described subprocess His waiting task.
5. according to the method described in claim 4, wherein, when detecting that the waiting task at least one subprocess executed Bi Shi distributes other waiting tasks at least one described subprocess, comprising:
If the quantity of the waiting task received is less than the specified quantity, and opens the son of quantity identical as task quantity Process then when detecting that the waiting task at least one subprocess is finished, and is receiving new waiting task When, new waiting task is distributed at least one described subprocess;
If the quantity of the waiting task received is greater than the specified quantity, and opens the subprocess of the specified quantity, Then when detecting that the waiting task at least one subprocess is finished, do not exist from receiving to obtain in waiting task The waiting task that executed in subprocess is simultaneously distributed at least one described subprocess, described to be processed until what is received Task is all finished.
6. according to the method described in claim 5, wherein, further includes:
To-be-processed task list is created, the waiting task received is cached into the to-be-processed task list;
It is that the waiting task distributes sole task code, and institute is cached in the to-be-processed task list based on preset algorithm State the corresponding relationship of waiting task He its sole task code;
The task code that the waiting task is obtained from the to-be-processed task list constructs to be processed according to the task code Task queue.
7. according to the method described in claim 6, wherein, the subprocess number with unlatching is transferred from the waiting task received Identical waiting task is measured, the waiting task transferred is respectively allocated in corresponding subprocess, comprising:
The task code of quantity identical as the subprocess quantity opened is transferred from the inactive queue of task;
Corresponding waiting task is extracted from the to-be-processed task list according to the task code transferred, by the to be processed of extraction Task is distributed into the subprocess opened accordingly.
8. a kind of device based on PHP asynchronous process task, comprising:
Module is constructed, suitable for multiple subprocess based on HyperText Preprocessor PHP building specified quantity, the subprocess is used for Waiting task described in asynchronous execution;
Comparison module, the quantity suitable for when receiving waiting task, comparing the waiting task received are specified with described The size of quantity, obtains comparison result;
Opening module, suitable for being opened from multiple subprocess of the specified quantity according to the comparison result and based on preset rules Open the subprocess of respective numbers;
Execution module, suitable for the waiting task that asynchronous execution receives in the subprocess of unlatching.
9. a kind of computer storage medium, the computer storage medium is stored with computer program code, when the computer When program code is run on the computing device, the calculating equipment perform claim is caused to require 1-7 described in any item based on PHP The method of asynchronous process task.
10. a kind of calculating equipment, comprising: processor;It is stored with the memory of computer program code;When the computer program When code is run by the processor, the calculating equipment perform claim is caused to require 1-7 described in any item asynchronous based on PHP The method of processing task.
CN201810886998.8A 2018-08-06 2018-08-06 A kind of method and device based on PHP asynchronous process task Pending CN109189506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810886998.8A CN109189506A (en) 2018-08-06 2018-08-06 A kind of method and device based on PHP asynchronous process task

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810886998.8A CN109189506A (en) 2018-08-06 2018-08-06 A kind of method and device based on PHP asynchronous process task

Publications (1)

Publication Number Publication Date
CN109189506A true CN109189506A (en) 2019-01-11

Family

ID=64920634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810886998.8A Pending CN109189506A (en) 2018-08-06 2018-08-06 A kind of method and device based on PHP asynchronous process task

Country Status (1)

Country Link
CN (1) CN109189506A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502347A (en) * 2019-08-28 2019-11-26 中国银行股份有限公司 Task load dispatching method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645939A (en) * 2013-11-29 2014-03-19 北京奇虎科技有限公司 Method and system for capturing images
US20140204103A1 (en) * 2011-09-02 2014-07-24 Freescale Semiconductor, Inc. Data processing system and method for task scheduling in a data processing system
CN107168779A (en) * 2017-03-31 2017-09-15 咪咕互动娱乐有限公司 A kind of task management method and system
CN107463439A (en) * 2017-08-21 2017-12-12 山东浪潮通软信息科技有限公司 A kind of thread pool implementation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140204103A1 (en) * 2011-09-02 2014-07-24 Freescale Semiconductor, Inc. Data processing system and method for task scheduling in a data processing system
CN103645939A (en) * 2013-11-29 2014-03-19 北京奇虎科技有限公司 Method and system for capturing images
CN107168779A (en) * 2017-03-31 2017-09-15 咪咕互动娱乐有限公司 A kind of task management method and system
CN107463439A (en) * 2017-08-21 2017-12-12 山东浪潮通软信息科技有限公司 A kind of thread pool implementation method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502347A (en) * 2019-08-28 2019-11-26 中国银行股份有限公司 Task load dispatching method and device
CN110502347B (en) * 2019-08-28 2022-05-27 中国银行股份有限公司 Task load scheduling method and device

Similar Documents

Publication Publication Date Title
CN105579959B (en) Hardware accelerator virtualization
CN103955399B (en) A kind of virtual machine migration method and device and physical host
CN112416585B (en) Deep learning-oriented GPU resource management and intelligent scheduling method
CN101180609B (en) Scheduling method, and scheduling device
CN107621973A (en) A kind of method for scheduling task and device across cluster
CN108924250A (en) Service request processing method, device and computer equipment based on block chain
CN104023042B (en) Cloud platform resource scheduling method
Shin et al. Deadline-guaranteed scheduling algorithm with improved resource utilization for cloud computing
CN107291550B (en) A kind of Spark platform resource dynamic allocation method and system for iterated application
CN107943577A (en) Method and apparatus for scheduler task
CN106547612A (en) A kind of multi-task processing method and device
CN106775493B (en) A kind of storage control and I/O Request processing method
CN110389816A (en) Method, apparatus and computer program product for scheduling of resource
Durgadevi et al. Resource allocation in cloud computing using SFLA and cuckoo search hybridization
CN107133103B (en) The internal storage management system and its method calculated for data stream type
WO2020177336A1 (en) Resource scheduling methods, device and system, and central server
CN110308982A (en) A kind of shared drive multiplexing method and device
CN107483364A (en) A kind of scheduling of Hadoop Yarn network bandwidth resources, partition method and device
CN108255595A (en) A kind of dispatching method of data task, device, equipment and readable storage medium storing program for executing
CN105260244A (en) Task scheduling method and device for distributed system
CN105975346B (en) The method, apparatus and system of scheduling thread resource
CN109189506A (en) A kind of method and device based on PHP asynchronous process task
CN106407007A (en) Elasticity analysis process oriented cloud resource allocation optimization method
CN112306642B (en) Workflow scheduling method based on stable matching game theory
CN107423114A (en) A kind of dynamic migration of virtual machine method based on classification of service

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