CN110134502A - Task processing method, device, system, computer equipment and storage medium - Google Patents
Task processing method, device, system, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110134502A CN110134502A CN201910344221.3A CN201910344221A CN110134502A CN 110134502 A CN110134502 A CN 110134502A CN 201910344221 A CN201910344221 A CN 201910344221A CN 110134502 A CN110134502 A CN 110134502A
- Authority
- CN
- China
- Prior art keywords
- terminal device
- task
- subtask
- network
- available mode
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5017—Task decomposition
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
This application involves a kind of task processing method, device, system, computer equipment and storage mediums.Include: the task requests for receiving cloud and sending, task of including in task requests is decomposed, at least one subtask is obtained;Detection task handles the current state of the terminal device in network, determines that current state is the terminal device of available mode;Wherein, terminal device can be handled the external access task processing network of network by task and/or be removed from task processing network;An at least subtask is sent to the terminal device of available mode, so that the terminal device of available mode handles at least one subtask.The above method can be realized the parallel processing to extensive task, promote the utilization efficiency of terminal device, so that task processing realization process is relatively easy, save operation cost.
Description
Technical field
This application involves computer art field, in particular to a kind of task processing method, device, system, computer equipment
And storage medium.
Background technique
With the development of intelligent operation, various arithmetic facilities come into being.Wherein, high performance computation equipment performance
Well, arithmetic speed is fast, but price is relatively high, and completes the higher cost of certain operation.And low-cost arithmetic facility
Performance is relatively low, though certain processor active task can be undertaken, when handling computation-intensive calculating task, often it is time-consuming compared with
It is more, the problem of equally also will appear the higher cost for completing certain operation.Currently, for the higher cost for completing certain operation
Problem, it is main in such a way that plurality of devices is integrated, individual task is completed jointly using multiple equipment.
However, the method for completing individual task jointly using multiple equipment completes all set when usually requiring that system starting
Standby configuration needs to carry out different settings for different calculating tasks, realizes that process is complicated, it is certain finally to will also result in completion
The problem of higher cost of operation.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of task processing method, device, system, computer and set
Standby and storage medium.
A kind of task processing method, which comprises
The task requests that cloud is sent are received, task of including in the task requests is decomposed, obtains at least one
A subtask;
Detection task handles the current state of the terminal device in network, determines that the current state is the end of available mode
End equipment;Wherein, the terminal device can be handled by the task network it is external access the task processing network and/or from
It is removed in the task processing network;
At least one described subtask is sent to the terminal device of the available mode, so that the end of the available mode
End equipment handles at least one described subtask.
It in one of the embodiments, include at least one network address in task processing network, at the task
The corresponding relationship of the identifier of the network address and the terminal device is stored in reason network;
The current state of terminal device in the Detection task processing network, comprising:
According to the corresponding relationship, the current state of detection and terminal device corresponding to the network address.
In one of the embodiments, the method also includes:
When exterior terminal equipment accesses the task processing network, the mark of the exterior terminal equipment is generated and stored
The corresponding relationship of symbol and a certain network address in task processing network.
In one of the embodiments, the method also includes:
When the terminal device is removed from task processing network, with deleting the terminal device and the network
The corresponding relationship of location.
The current state of the terminal device includes: available mode and execution status of task in one of the embodiments,;
The method also includes:
When the terminal device that the current state is available mode handles at least one described subtask, by institute
The state for stating terminal device is changed into the execution status of task by the available mode;
After the terminal device that the current state is available mode is completed to the processing of at least one subtask, release
The terminal device is put, the state of the terminal device is changed into the available mode by the execution status of task.
The terminal that at least one described subtask is sent to the available mode is set in one of the embodiments,
It is standby, so that the terminal device of the available mode handles at least one described subtask, later further include:
Receive the processing result of the subtask of the terminal device feedback;
The processing result of the subtask is summarized, and summarized results is fed back into the cloud.
A kind of task processing method, which comprises
Cloud sends task requests to server;
The server decomposes task of including in the task requests, obtains at least one subtask;
The current state of terminal device in server Detection task processing network, determining that the current state is can
With the terminal device of state, and at least one described subtask is sent to the terminal device of the available mode;Wherein, described
Terminal device can be handled the external of network by the task and access the task processing network and/or handle network from the task
Middle removal;
The terminal device of the available mode handles at least one described subtask, and by subtask processing result
Feed back to the server;
The server summarizes the subtask processing result, and summarized results is fed back to the cloud.
A kind of Task Processing Unit, described device include:
Decomposing module divides task of including in the task requests for receiving the task requests of cloud transmission
Solution, obtains at least one subtask;
Determining module determines the current state for the current state of the terminal device in Detection task processing network
For the terminal device of available mode;Wherein, the terminal device can be handled the external of network by the task and access the task
It handles network and/or is removed from task processing network;
Sending module, at least one described subtask to be sent to the terminal device of the available mode, so that institute
The terminal device for stating available mode handles at least one described subtask.
A kind of task processing system, the system comprises:
Cloud, for sending task requests to server;
The server obtains at least one subtask for decomposing to task of including in the task requests;
The server is also used to the current state of the terminal device in Detection task processing network, determines described current
State is the terminal device of available mode, and at least one described subtask is sent to the terminal device of the available mode;
Wherein, the terminal device can be handled the external of network by the task and access the task processing network and/or from described
It is removed in business processing network;
The terminal device of the available mode, for handling at least one described subtask, and will be at subtask
Reason result feeds back to the server;
The server is also used to summarize the subtask processing result, and summarized results is fed back to described
Cloud.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
The step of device realizes the above method when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
The step of upper the method is realized when row.
Above-mentioned task processing method, device, system, computer equipment and storage medium, comprising: receive times that cloud is sent
Business request, decomposes task of including in task requests, obtains at least one subtask, and Detection task is handled in network
The current state of terminal device determines that current state is the terminal device of available mode, wherein terminal device can be handled by task
It the external access task processing network of network and/or is removed from task processing network, it will be sent to can for an at least subtask
With the terminal device of state, so that the terminal device of available mode handles at least one subtask.Wherein, cloud is being received
It is at least one subtask by Task-decomposing after holding sending for task, it can be according to the task attribute of subtask, by different task
The terminal device that different performance is distributed in the subtask of attribute is handled, and to realize the parallel processing to extensive task, is mentioned
The utilization efficiency of terminal device is risen, further, each terminal device can access and exit task processing network, not influence to account for whole
The operating status of a task processing network saves operation cost so that task processing realization process is relatively easy.
Detailed description of the invention
Fig. 1 is the applied environment figure of task processing method in one embodiment;
Fig. 2 is the flow diagram of task processing method in one embodiment;
Fig. 3 is the flow diagram of task feedback in one embodiment;
Fig. 4 is the flow diagram of task processing method in another embodiment;
Fig. 5 is the structural block diagram of Task Processing Unit in one embodiment;
Fig. 6 is the structural block diagram of task processing system in one embodiment;
Fig. 7 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
It is understood that term " first " used in this application, " second " etc. can be used to describe herein various sequences
Relationship and corresponding relationship, but these sequence relations and corresponding relationship should not be limited by these terms.These terms are only used to by one
Sequence relation and corresponding relationship are distinguished with another sequence relation and corresponding relationship.
Task processing method provided by the present application can be applied in application environment as shown in Figure 1.Fig. 1 is at task
System schematic is managed, including cloud 101, server 102, terminal device 103 and task handle network 104.Wherein, cloud 101
It is communicated by server 102 with terminal device 103.Specifically, server 102 receive cloud 101 send task after,
It is at least one subtask by Task-decomposing, 102 Detection task of server handles the current of the terminal device 103 in network 104
State determines that current state is the terminal device 103 of available mode, and last server 102 will be at least sent to a subtask
The terminal device 103 of available mode, so that the terminal device 103 of available mode handles at least one subtask, with reality
Now to the parallel processing of extensive task.Wherein, terminal device 103 can be, but not limited to be various personal computers, notebook
Computer, smart phone, tablet computer and portable wearable device.
In one embodiment, as shown in Fig. 2, providing a kind of task processing method, it is applied in Fig. 2 in this way
It is illustrated for server, comprising the following steps:
Step S210, receive cloud send task requests, task of including in task requests is decomposed, obtain to
A few subtask.
It wherein, include corresponding task in task requests, the corresponding task for including can be one in task requests
Or it is multiple.
In embodiments of the present invention, cloud sends task requests to server, after server receives task requests, to appointing
Business request is parsed, and task of including in task requests is parsed, and is further that several can by corresponding Task-decomposing
The subtask executed parallel.
Step S220, Detection task handle the current state of the terminal device in network, determine that current state is available shape
The terminal device of state;Wherein, the external access task that terminal device can be handled network by task handle network and/or from task
It is removed in reason network.
Wherein, task processing network is made of server and several terminal devices, wherein server can be also used for appointing
Business scheduling, the subtask decomposed is sent to terminal device.Available mode, which refers to that terminal device is currently at, to be received
With the state of processing subtask.
Specifically, the current state of the terminal device in server poll Detection task processing network, if at terminal device
When can receive and handle the state of task, it is determined that the current state of corresponding terminal device is available mode.Wherein, terminal
Equipment can access task processing network, can also handle in network and remove from task.Server poll Detection task is handled in network
Terminal device current state the step in, detection be such as task processing network terminal device currently available shape
State.
An at least subtask is sent to the terminal device of available mode, so that the terminal of available mode by step S230
Equipment handles at least one subtask.
Specifically, when the current state of terminal device is available mode, server will be at least sent to a subtask
The terminal device of the available mode is handled subtask after the terminal device of available mode receives subtask.For example,
Server parses task requests, and corresponding Task-decomposing can be executed parallel for six marked as 1,2,3,4,5,6
Subtask, server the subtask marked as 1 can be sent to current state be available mode terminal device A so that
Terminal device A handles the subtask marked as 1;In the same manner, the subtask marked as 2 can be sent to and work as by server
Preceding state is the terminal device B of available mode, so that terminal device B handles the subtask marked as 2;Server can be with
Subtask marked as 3 is sent to the terminal device C that current state is available mode, so that terminal device C is to marked as 3
Subtask is handled;……;Subtask marked as 6 can be sent to the terminal that current state is available mode by server
Equipment F, so that terminal device F handles the subtask marked as 6.Optionally, according to the calculation process energy of terminal device
Marked as the three of 1,2,3 subtasks can also be sent to the terminal device A that current state is available mode by power, server,
So that terminal device A handles three subtasks marked as 1,2,3.Herein not to pair of subtask and terminal device
It should be related to and be specifically limited, the operational capability of terminal device of being subject to can satisfy and handle subtask, and a terminal is set
It is standby to receive and process one or more subtasks simultaneously.
In above-mentioned task processing method, the task requests that cloud is sent are received, task of including in task requests is carried out
It decomposes, obtains at least one subtask, Detection task handles the current state of the terminal device in network, determines that current state is
The terminal device of available mode, wherein terminal device can by task handle network external access task handle network and/or from
It is removed in task processing network, an at least subtask is sent to the terminal device of available mode, so that the end of available mode
End equipment handles at least one subtask.It wherein, is at least one by Task-decomposing after receiving the task that cloud is sent
The subtask of different task attribute can be distributed to the terminal of different performance according to the task attribute of subtask by a subtask
Equipment is handled, and to realize the parallel processing to extensive task, promotes the utilization efficiency of terminal device, further, respectively
Terminal device can access and exit task processing network, the operating status for accounting for entire task processing network not influenced, so that appointing
Business processing realization process is relatively easy, saves operation cost.
It include in one of the embodiments, at least one network address in task processing network, task is handled in network
It is stored with the corresponding relationship of the identifier of network address and terminal device;Then the Detection task in above-mentioned steps S220 handles network
In the current state of terminal device specifically include:
According to corresponding relationship, the current state of detection and terminal device corresponding to network address.
Wherein, the task that network address refers to that server and terminal device are constituted handles the address stored in network, task
It is all unique for handling each of network network address.The identifier of terminal device includes the essential information of terminal device,
Such as the information such as physical address, device name and equipment performance of terminal device, the identifier of a terminal device are corresponding unique
A terminal device.
Specifically, right there is one between the network address stored and the identifier of terminal device in task processing network
It should be related to, when server poll Detection task handles the current state of the terminal device in network, server can be according to net
Corresponding relationship between network address and the identifier of terminal device finds corresponding terminal device, further, to terminal device
Current state detected.
Optionally, when exterior terminal equipment access task processing network, generate and store the mark of exterior terminal equipment
The corresponding relationship of symbol and a certain network address in task processing network.
Specifically, when having in external terminal device access task processing network, then network is carried out to terminal device and matched
It sets, is one unique network address of terminal equipment configuration, and in the identifier of storage terminal device and task processing network
The corresponding relationship of a certain network address, so that server can be according to corresponding between network address and the identifier of terminal device
Relationship finds corresponding terminal device, further, detects to the current state of terminal device.For example, current poll inspection
Measure 5 terminal devices, respectively terminal device A, terminal device B, terminal device C, terminal device D and terminal device E, when
After having the terminal device an of outside to access, poll is detected next time, it will detects 6 terminal devices, respectively terminal is set
Standby A, terminal device B, terminal device C, terminal device D, terminal device E and terminal device F, wherein terminal device F is new access
Terminal device.
Optionally, when terminal device is removed from task processing network, it is corresponding with network address to delete terminal device
Relationship.
Specifically, regardless of terminal device is to handle in network in task at the very start, or access task handles net below
Network, task processing network in be all stored with network address and terminal device identifier corresponding relationship, when terminal device from
When removing in task processing network, then it will be deleted this corresponding relationship of terminal device and network address, server cannot be looked into
Terminal device is looked for, the current state of terminal device can not be detected.For example, current poll has detected 5 terminal devices, respectively
For terminal device A, terminal device B, terminal device C, terminal device D and terminal device E, after thering is a terminal device to remove,
By taking removing device A as an example, poll is detected next time, it will detects 4 terminal devices, respectively terminal device B, terminal device
C, terminal device D and terminal device E.
Optionally, when terminal equipment failure, then terminal device is removed from task processing network.
Specifically, when server poll detect task processing network in there are current state be down state when, into
One step detects the terminal device, and whether failure if terminal equipment failure shows that the terminal device is currently at because of equipment fault
And cannot receive and handle the state of subtask, then can by terminal device from task processing network in remove, end equipment from
After being removed in task processing network, it can individually be sent and repair and debug, not influence the operation of entire task processing network.
In above-described embodiment, it includes at least one network address in network that task, which is handled, is stored in task processing network
The corresponding relationship of the identifier of network address and terminal device, Detection task handle the current state of the terminal device in network,
It include: according to corresponding relationship, the current state of detection and terminal device corresponding to network address, when exterior terminal equipment accesses
When task handles network, a certain network address in the identifier and task processing network of exterior terminal equipment is generated and stored
Corresponding relationship deletes the corresponding relationship of terminal device and network address when terminal device is removed from task processing network.Its
In, it the access of terminal device and exits task processing network and does not influence the operating status of entire task processing network, server can
The terminal device in task processing network is searched, into one according to the corresponding relationship of network address and the identifier of terminal device
Step detects the currently available state of corresponding terminal equipment, so that subtask to be processed can be sent to accordingly by server
Terminal device, promote the utilization efficiency of terminal device.
In one of the embodiments, optionally, the current state of terminal device includes: available mode and task execution shape
State;When the terminal device that current state is available mode handles at least one subtask, by the state of terminal device
Execution status of task is changed by available mode.
Wherein, available mode refers to that terminal device is currently at the state that can receive and handle subtask, task execution shape
State indicates that terminal device is carrying out task, is currently at the state that cannot receive and handle subtask.
Specifically, when server detects that the current state of terminal device is available mode, subtask can be sent
To the terminal device for being currently at available mode, after terminal device receives subtask and starts to process, the state of terminal device
Execution status of task is then changed by available mode, wouldn't receive and handle subtask.
Optionally, it after the terminal device that current state is available mode is completed to the processing of at least one subtask, releases
Terminal device is put, the state of terminal device is changed into available mode by execution status of task.
Specifically, after terminal device completes the processing to subtask, then terminal device is released, and state has task to hold
Row state is changed into available mode, which receives and handle again subtask.
In above-described embodiment, the current state of terminal device includes: available mode and execution status of task;Task processing side
Method further include: when the terminal device that current state is available mode handles at least one subtask, by terminal device
State execution status of task is changed by available mode, current state be available mode terminal device complete at least one
After the processing of a subtask, terminal device is discharged, the state of terminal device is changed into available mode by execution status of task.Its
In, because receiving and handling subtask, current state is changed into execution status of task by available mode, works as terminal terminal device
After equipment is completed to the processing of subtask, current state is changed into available mode by execution status of task, and realization sets terminal
Standby recycles, and promotes the utilization efficiency of terminal device.
In one embodiment, as shown in figure 3, providing a kind of task processing method, it is applied in Fig. 2 in this way
It is illustrated for server, comprising the following steps:
Step S310, the processing result of the subtask of receiving terminal apparatus feedback.
Specifically, after terminal device completes the processing of the subtask sent to the server received, then one is generated
Task processing result, and the processing result of the subtask is fed back into server.
Step S320 summarizes the processing result of subtask, and summarized results is fed back to cloud.
Specifically, server receive terminal device feedback subtask processing result after, then by the processing of subtask
As a result it carries out summarizing integration, and summarized results is fed back into cloud, so that cloud can be according to corresponding feedback result, decision
It is no to initiate new task requests.Wherein, server summarize integration and server to appointing to the processing result of subtask
It is an opposite process that business, which decompose,.Server can be communicated with cloud by reverse proxy agreement, server end
The task requests that cloud is initiated are received, and task processing result is fed back into cloud.
In above-described embodiment, an at least subtask is sent to the terminal device of available mode, so that available mode
Terminal device handles at least one subtask, later further include: the processing knot of the subtask of receiving terminal apparatus feedback
Fruit summarizes the processing result of subtask, and summarized results is fed back to cloud.Wherein, place of the server to subtask
It is an opposite process that reason result, which carries out summarizing integration and server decompose to task,.Server can pass through with cloud
Reverse proxy agreement is communicated, the task requests that received server-side cloud is initiated, and task processing result is fed back to cloud
End, so that cloud according to corresponding feedback result can decide whether that new task requests can be initiated.
In one embodiment, as shown in figure 4, providing a kind of task processing method, comprising the following steps:
Step S410, cloud send task requests to server.
Step S420, server decompose task of including in task requests, obtain at least one subtask.
Specifically, cloud sends task requests to server, after server receives task requests, carries out to task requests
Parsing, parses task of including in task requests, and is further what several can be executed parallel by corresponding Task-decomposing
Subtask.
Step S430, server Detection task handle the current state of the terminal device in network, determine that current state is
The terminal device of available mode, and an at least subtask is sent to the terminal device of available mode;Wherein, terminal device energy
It is removed by the external access task processing network of task processing network and/or from task processing network.
Specifically, the current state of the terminal device in server poll Detection task processing network, if at terminal device
When can receive and handle the state of task, it is determined that the current state of corresponding terminal device is available mode.Wherein, terminal
Equipment can access task processing network, can also handle in network and remove from task.Server poll Detection task is handled in network
Terminal device current state the step in, detection be such as task processing network terminal device currently available shape
State.
The terminal device of step S440, available mode handle at least one subtask, and subtask is handled and is tied
Fruit feeds back to server.
Specifically, when the current state of terminal device is available mode, server will be at least sent to a subtask
The terminal device of the available mode is handled subtask after the terminal device of available mode receives subtask, works as completion
After the processing of subtask, the processing result of subtask is fed back to server by terminal device.For example, server is to task requests
It is parsed, is six subtasks that can be executed parallel marked as 1,2,3,4,5,6 by corresponding Task-decomposing, server can
The subtask marked as 1 is sent to terminal device A of the current state as available mode, so that terminal device A is to marked as 1
Subtask handled;In the same manner, it is available mode that the subtask marked as 2 can be sent to current state by server
Terminal device B, so that terminal device B handles the subtask marked as 2;Server can be by the subtask marked as 3
Be sent to current state be available mode terminal device C so that terminal device C to the subtask marked as 3 at
Reason;……;Subtask marked as 6 can be sent to the terminal device F that current state is available mode by server, so that eventually
End equipment F handles the subtask marked as 6.Optionally, according to the calculation processing power of terminal device, server may be used also
Marked as the three of 1,2,3 subtasks are sent to terminal device A of the current state as available mode, so that terminal device A
Three subtasks marked as 1,2,3 are handled.The corresponding relationship of subtask and terminal device is not done specifically herein
It limits, the operational capability of terminal device of being subject to can satisfy and handle subtask, and a terminal device can connect simultaneously
It receives and handles one or more subtasks.
Step S450, server summarize subtask processing result, and summarized results is fed back to cloud.
Specifically, server receive terminal device feedback subtask processing result after, then by the processing of subtask
As a result it carries out summarizing integration, and summarized results is fed back into cloud, so that cloud can be according to corresponding feedback result, decision
It is no to initiate new task requests.Wherein, server summarize integration and server to appointing to the processing result of subtask
It is an opposite process that business, which decompose,.Server can be communicated with cloud by reverse proxy agreement, server end
The task requests that cloud is initiated are received, and task processing result is fed back into cloud.
In above-mentioned task processing method, cloud sends task requests to server, and server to including in task requests
Task is decomposed, at least one subtask is obtained, and server Detection task handles the current state of the terminal device in network,
It determines that current state is the terminal device of available mode, and an at least subtask is sent to the terminal device of available mode,
Wherein, terminal device can be handled the external access task processing network of network by task and/or be removed from task processing network,
The terminal device of available mode handles at least one subtask, and subtask processing result is fed back to server, clothes
Business device summarizes subtask processing result, and summarized results is fed back to cloud.Wherein, cloud is received in server to send
Task after, can by Task-decomposing be at least one subtask, can be according to the task attribute of subtask, by different task attribute
Subtask distribute to the terminal device of different performance and handled, further, complete the place to subtask in terminal device
Processing result is fed back into server after reason, server carries out summarizing integration to the processing result of subtask, and task is handled
As a result cloud is fed back to, so that cloud according to corresponding feedback result can decide whether that new task requests can be initiated.On
The method of stating can realize the parallel processing to extensive task, promote the utilization efficiency of terminal device, further, each terminal device
Task processing network can be accessed and be exited, the operating status for accounting for entire task processing network is not influenced, so that task processing is real
Existing process is relatively easy, saves operation cost.
In one embodiment, as shown in figure 5, providing a kind of Task Processing Unit, comprising: decomposing module 510 determines
Module 520 and sending module 530, in which:
Decomposing module 510 divides task of including in task requests for receiving the task requests of cloud transmission
Solution, obtains at least one subtask;
Determining module 520 determines that current state is for the current state of the terminal device in Detection task processing network
The terminal device of available mode;Wherein, terminal device can by task handle network external access task handle network and/or from
It is removed in task processing network;
Sending module 530, for an at least subtask to be sent to the terminal device of available mode, so that available mode
Terminal device at least one subtask is handled.
Determining module 520 is also used to execute according to corresponding relationship, detection and network address institute in one of the embodiments,
The current state of corresponding terminal device.
Determining module 520 is also used to execute when exterior terminal equipment access task processing net in one of the embodiments,
When network, generates and store the identifier of exterior terminal equipment and the corresponding relationship of a certain network address in task processing network.
Determining module 520 is also used to execute when terminal device is moved from task processing network in one of the embodiments,
Except when, delete terminal device and network address corresponding relationship.
Determining module 520 is also used to execute in one of the embodiments, sets in the terminal that current state is available mode
For when handling at least one subtask, the state of terminal device is changed into execution status of task by available mode;?
Current state is after the terminal device of available mode is completed to the processing of at least one subtask, terminal device to be discharged, by terminal
The state of equipment is changed into available mode by execution status of task.
Sending module 530 is also used to execute the place of the subtask of receiving terminal apparatus feedback in one of the embodiments,
Manage result;The processing result of subtask is summarized, and summarized results is fed back into cloud.
Specific about Task Processing Unit limits the restriction that may refer to above for task processing method, herein not
It repeats again.Modules in above-mentioned Task Processing Unit can be realized fully or partially through software, hardware and combinations thereof.On
Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form
In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, as shown in fig. 6, providing a kind of task processing system, including cloud, server and terminal
Equipment:
Cloud 101, for sending task requests to server 102.
Server 102 obtains at least one subtask for decomposing to task of including in task requests.
Server 102 is also used to the current state of the terminal device 103 in Detection task processing network 104, determines current
State is the terminal device 103 of available mode, and an at least subtask is sent to the terminal device 103 of available mode;Its
In, terminal device 103 can be handled the external access task processing network 104 of network 104 by task and/or handle network from task
It is removed in 104.
The terminal device 103 of available mode, for handling at least one subtask, and by subtask processing result
Feed back to server 102.
Server 102 is also used to summarize subtask processing result, and summarized results is fed back to cloud 101.
Server 102 is also used to execute according to corresponding relationship in one of the embodiments, and detection and network address institute are right
The current state for the terminal device answered.
Server 102 is also used to execute when exterior terminal equipment access task processing network in one of the embodiments,
When, it generates and stores the identifier of exterior terminal equipment and the corresponding relationship of a certain network address in task processing network.
Server 102 is also used to execute when terminal device is removed from task processing network in one of the embodiments,
When, delete the corresponding relationship of terminal device and network address.
Server 102 is also used to execute in the terminal device that current state is available mode in one of the embodiments,
When handling at least one subtask, the state of terminal device is changed into execution status of task by available mode;Working as
Preceding state is after the terminal device of available mode is completed to the processing of at least one subtask, to discharge terminal device, terminal is set
Standby state is changed into available mode by execution status of task.
Server 102 is also used to execute the processing of the subtask of receiving terminal apparatus feedback in one of the embodiments,
As a result;The processing result of subtask is summarized, and summarized results is fed back into cloud.
Specific about task processing system limits the restriction that may refer to above for task processing method, herein not
It repeats again.Modules in above-mentioned task processing system can be realized fully or partially through software, hardware and combinations thereof.On
Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form
In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure
Figure can be as shown in Figure 7.The computer equipment includes processor, the memory, network interface, display connected by system bus
Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited
Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey
Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with
Realize a kind of task schedule integrated approach.The display screen of the computer equipment can be liquid crystal display or electric ink is shown
Screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible on computer equipment shell
Key, trace ball or the Trackpad of setting can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 7, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, memory is stored with meter
Calculation machine program, processor perform the steps of when executing computer program
The task requests that cloud is sent are received, task of including in task requests is decomposed, obtain at least one son
Task;
Detection task handles the current state of the terminal device in network, determines that current state is that the terminal of available mode is set
It is standby;Wherein, terminal device can be handled the external access task processing network of network by task and/or be moved from task processing network
It removes;
An at least subtask is sent to the terminal device of available mode, so that the terminal device of available mode is at least
One subtask is handled.
It also performs the steps of when processor executes computer program in one of the embodiments, according to corresponding relationship,
The current state of detection and terminal device corresponding to network address.
It also performs the steps of when processor executes computer program in one of the embodiments, when exterior terminal is set
When standby access task processing network, a certain network in the identifier and task processing network of exterior terminal equipment is generated and stored
The corresponding relationship of address.
In one of the embodiments, processor execute computer program when also perform the steps of when terminal device from
When removing in task processing network, the corresponding relationship of terminal device and network address is deleted.
It is also performed the steps of when processor executes computer program in one of the embodiments, and is in current state
When the terminal device of available mode handles at least one subtask, the state of terminal device is changed by available mode
Execution status of task;After the terminal device that current state is available mode is completed to the processing of at least one subtask, release
The state of terminal device is changed into available mode by execution status of task by terminal device.
Receiving terminal apparatus is also performed the steps of when processor executes computer program in one of the embodiments,
The processing result of the subtask of feedback;The processing result of subtask is summarized, and summarized results is fed back into cloud.
In one embodiment, a kind of computer equipment, including memory and processor are provided, memory is stored with meter
Calculation machine program, processor perform the steps of when executing computer program
Cloud sends task requests to server;
Server decomposes task of including in task requests, obtains at least one subtask;
Server Detection task handles the current state of the terminal device in network, determines that current state is available mode
Terminal device, and an at least subtask is sent to the terminal device of available mode;Wherein, terminal device can be handled by task
The external access task of network handles network and/or removes from task processing network;
The terminal device of available mode handles at least one subtask, and subtask processing result is fed back to clothes
Business device;
Server summarizes subtask processing result, and summarized results is fed back to cloud.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of when being executed by processor
It also performs the steps of when computer program is executed by processor in one of the embodiments, and is closed according to corresponding
System, the current state of detection and terminal device corresponding to network address.
It is also performed the steps of when computer program is executed by processor in one of the embodiments, and works as exterior terminal
When equipment accesses task processing network, a certain net in the identifier and task processing network of exterior terminal equipment is generated and stored
The corresponding relationship of network address.
It is also performed the steps of when computer program is executed by processor in one of the embodiments, and works as terminal device
When removing from task processing network, the corresponding relationship of terminal device and network address is deleted.
It also performs the steps of when computer program is executed by processor in one of the embodiments, in current state
When handling for the terminal device of available mode at least one subtask, the state of terminal device is changed by available mode
For execution status of task;After the terminal device that current state is available mode is completed to the processing of at least one subtask, release
Terminal device is put, the state of terminal device is changed into available mode by execution status of task.
Reception terminal is also performed the steps of when computer program is executed by processor in one of the embodiments, to set
The processing result of the subtask of standby feedback;The processing result of subtask is summarized, and summarized results is fed back into cloud.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of when being executed by processor
Cloud sends task requests to server;
Server decomposes task of including in task requests, obtains at least one subtask;
Server Detection task handles the current state of the terminal device in network, determines that current state is available mode
Terminal device, and an at least subtask is sent to the terminal device of available mode;Wherein, terminal device can be handled by task
The external access task of network handles network and/or removes from task processing network;
The terminal device of available mode handles at least one subtask, and subtask processing result is fed back to clothes
Business device;
Server summarizes subtask processing result, and summarized results is fed back to cloud.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (11)
1. a kind of task processing method, which is characterized in that the described method includes:
The task requests that cloud is sent are received, task of including in the task requests is decomposed, obtain at least one son
Task;
Detection task handles the current state of the terminal device in network, determines that the current state is that the terminal of available mode is set
It is standby;Wherein, the terminal device can be handled the external of network by the task and access the task processing network and/or from described
It is removed in task processing network;
At least one described subtask is sent to the terminal device of the available mode, so that the terminal of the available mode is set
It is standby that at least one described subtask is handled.
2. the method according to claim 1, wherein in task processing network comprising at least one network
Location, the task handle the corresponding relationship that the identifier of the network address and the terminal device is stored in network;
The current state of terminal device in the Detection task processing network, comprising:
According to the corresponding relationship, the current state of detection and terminal device corresponding to the network address.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
When exterior terminal equipment accesses task processing network, generate and store the identifier of the exterior terminal equipment with
The corresponding relationship of a certain network address in the task processing network.
4. according to the method described in claim 2, it is characterized in that, the method also includes:
When the terminal device is removed from task processing network, the terminal device and the network address are deleted
Corresponding relationship.
5. the method according to claim 1, wherein the current state of the terminal device includes: available mode
And execution status of task;
The method also includes:
When the terminal device that the current state is available mode handles at least one described subtask, by the end
The state of end equipment is changed into the execution status of task by the available mode;
After the terminal device that the current state is available mode is completed to the processing of at least one subtask, institute is discharged
Terminal device is stated, the state of the terminal device is changed into the available mode by the execution status of task.
6. the method according to claim 1, wherein it is described by least one described subtask be sent to it is described can
With the terminal device of state, so that the terminal device of the available mode handles at least one described subtask, later
Further include:
Receive the processing result of the subtask of the terminal device feedback;
The processing result of the subtask is summarized, and summarized results is fed back into the cloud.
7. a kind of task processing method, which is characterized in that the described method includes:
Cloud sends task requests to server;
The server decomposes task of including in the task requests, obtains at least one subtask;
The current state of terminal device in the server Detection task processing network determines that the current state is available shape
The terminal device of state, and at least one described subtask is sent to the terminal device of the available mode;Wherein, the terminal
Equipment can be handled the external of network by the task and access the task processing network and/or move from task processing network
It removes;
The terminal device of the available mode handles at least one described subtask, and subtask processing result is fed back
To the server;
The server summarizes the subtask processing result, and summarized results is fed back to the cloud.
8. a kind of Task Processing Unit, which is characterized in that described device includes:
Decomposing module is decomposed task of including in the task requests, is obtained for receiving the task requests of cloud transmission
To at least one subtask;
Determining module, for Detection task processing network in terminal device current state, determine the current state be can
With the terminal device of state;Wherein, the terminal device can be handled the external of network by the task and access the task processing
Network and/or from the task processing network in remove;
Sending module, at least one described subtask to be sent to the terminal device of the available mode, so that described can
At least one described subtask is handled with the terminal device of state.
9. a kind of task processing system, which is characterized in that the system comprises:
Cloud, for sending task requests to server;
The server obtains at least one subtask for decomposing to task of including in the task requests;
The server is also used to the current state of the terminal device in Detection task processing network, determines the current state
For the terminal device of available mode, and at least one described subtask is sent to the terminal device of the available mode;Wherein,
The terminal device can be handled the external of network by the task and access the task processing network and/or handle from the task
It is removed in network;
The terminal device of the available mode for handling at least one described subtask, and subtask is handled and is tied
Fruit feeds back to the server;
The server is also used to summarize the subtask processing result, and summarized results is fed back to the cloud.
10. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of any one of claims 1 to 7 the method is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910344221.3A CN110134502A (en) | 2019-04-26 | 2019-04-26 | Task processing method, device, system, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910344221.3A CN110134502A (en) | 2019-04-26 | 2019-04-26 | Task processing method, device, system, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110134502A true CN110134502A (en) | 2019-08-16 |
Family
ID=67575330
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910344221.3A Pending CN110134502A (en) | 2019-04-26 | 2019-04-26 | Task processing method, device, system, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110134502A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112000483A (en) * | 2020-08-28 | 2020-11-27 | 山东超越数控电子股份有限公司 | Dynamic processing method of system and wearable computer system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8726282B1 (en) * | 2006-05-01 | 2014-05-13 | Open Invention Network, Llc | Job scheduler for remote maintenance of servers and workstations |
CN109117252A (en) * | 2017-06-26 | 2019-01-01 | 北京京东尚科信息技术有限公司 | Method, system and the container cluster management system of task processing based on container |
CN109445921A (en) * | 2018-10-24 | 2019-03-08 | 东北石油大学 | A kind of distributed data task processing method and device |
CN109656699A (en) * | 2018-12-14 | 2019-04-19 | 平安医疗健康管理股份有限公司 | Distributed computing method, device, system, equipment and readable storage medium storing program for executing |
-
2019
- 2019-04-26 CN CN201910344221.3A patent/CN110134502A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8726282B1 (en) * | 2006-05-01 | 2014-05-13 | Open Invention Network, Llc | Job scheduler for remote maintenance of servers and workstations |
CN109117252A (en) * | 2017-06-26 | 2019-01-01 | 北京京东尚科信息技术有限公司 | Method, system and the container cluster management system of task processing based on container |
CN109445921A (en) * | 2018-10-24 | 2019-03-08 | 东北石油大学 | A kind of distributed data task processing method and device |
CN109656699A (en) * | 2018-12-14 | 2019-04-19 | 平安医疗健康管理股份有限公司 | Distributed computing method, device, system, equipment and readable storage medium storing program for executing |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112000483A (en) * | 2020-08-28 | 2020-11-27 | 山东超越数控电子股份有限公司 | Dynamic processing method of system and wearable computer system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104714785A (en) | Task scheduling device, task scheduling method and data parallel processing device | |
CN111190753B (en) | Distributed task processing method and device, storage medium and computer equipment | |
CN110689232A (en) | Workflow configuration optimization processing method and device and computer equipment | |
CN109033814B (en) | Intelligent contract triggering method, device, equipment and storage medium | |
CN111708586B (en) | Application starting configuration item loading method and device, computer equipment and storage medium | |
CN108834086A (en) | Method, apparatus, computer equipment and the storage medium that short message is sent | |
CN114615340B (en) | Request processing method and device, computer equipment and storage device | |
CN104994183A (en) | Short network address determining method and device | |
CN110554912B (en) | Method and device for scheduling equipment to execute tasks | |
CN108900627B (en) | Network request method, terminal device and storage medium | |
CN111694639A (en) | Method and device for updating address of process container and electronic equipment | |
CN111294377B (en) | Dependency network request sending method, terminal device and storage medium | |
US10191844B2 (en) | Automatic garbage collection thrashing monitoring | |
CN110134502A (en) | Task processing method, device, system, computer equipment and storage medium | |
CN112527416A (en) | Task processing method and device, computer equipment and storage medium | |
CN110609707B (en) | Online data processing system generation method, device and equipment | |
CN109711124B (en) | Method, apparatus, computer device and storage medium for managing mobile device | |
CN110765392A (en) | Data loading method and device, storage medium and terminal | |
CN116126719A (en) | Interface testing method and device, electronic equipment and storage medium | |
CN108062224A (en) | Data read-write method, device and computing device based on file handle | |
CN111431951B (en) | Data processing method, node equipment, system and storage medium | |
CN111597240A (en) | Data export method, data export device, computer equipment and storage medium | |
CN110928672A (en) | Task arranging method, device and equipment and storage medium | |
CN113407440B (en) | Testing system and method for wireless communication module | |
US20160323397A1 (en) | Aysnchronous Custom Exit Points |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190816 |