×

Method and apparatus for processing computational task having multiple subflows

  • US 10,146,588 B2
  • Filed: 06/17/2016
  • Issued: 12/04/2018
  • Est. Priority Date: 01/14/2014
  • Status: Active Grant
First Claim
Patent Images

1. A method for processing a computational task, performed at a computing apparatus having one or more processors and a memory for storing executable instructions to be executed by the one or more the processors, the method comprising:

  • obtaining the computational task that comprises multiple subflows;

    storing input data of a current subflow of the computational task in a queue;

    creating multiple task processing threads for each subflow;

    obtaining first input data from the queue and performing data processing according to logic corresponding to the current subflow;

    wherein different pieces of the first input data are obtained from the queue and the data processing of the different pieces of the first input data are performed according to the logic corresponding to the current subflow separately in the multiple task processing threads in parallel;

    determining whether to enter a next subflow according to a result of the data processing;

    when determining to enter the next subflow, storing the result of the data processing in another queue as input data of the next subflow of the current subflow, and entering the next subflow; and

    decreasing a difference between processing speeds of the current subflow and the next subflow such that a congested state or an idle time of at least one of the multiple task processing threads for the current subflow or the multiple task processing threads for the next subflow is reduced, by adjusting one or a combination of a number of the multiple task processing threads for the current subflow and a number of the multiple task processing threads for the next subflow.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×