A method for processing tasks in parallel, performed by an electronic device the method comprising determining at least one parallel computing graph of a target task, each of the at least one parallel computing graph comprising a plurality of operator tasks; determining a parallel computing graph and an operator scheduling scheme based on a hardware execution cost of each operator task of each of the at least one parallel computing graph in a cluster, wherein the cluster comprises a plurality of nodes for executing the plurality of operator tasks, and each parallel computing graph corresponds to at least one operator scheduling scheme; and scheduling and executing the plurality of operator tasks of the determined parallel computing graph in the cluster based on the determined parallel computing graph and the determined operator scheduling scheme; wherein determining the parallel computing graph and the operator scheduling scheme based on the hardware execution cost of each operator task of each of the at least one parallel computing graph in the cluster comprises: according to an operator characteristic of each of the at least one parallel computing graph, a scheduling characteristic of the operator scheduling scheme and a hardware characteristic of the cluster, predicting a total execution cost of each of the at least one parallel computing graph using the operator scheduling scheme when being processed in the cluster based on a scheduling scheme model, wherein the scheduling characteristic of the operator scheduling scheme comprises at least one of a number and types of in-degree operator tasks of the communication operator tasks, a number and types of out-degree operator tasks of the communication operator tasks; and determining the parallel computing graph and the operator scheduling scheme based on the predicted total execution cost. determining at least one parallel computing graph of a target task, each of the at least one parallel computing graph comprising a plurality of operator tasks; determining a parallel computing graph and an operator scheduling scheme based on a hardware execution cost of each operator task of each of the at least one parallel computing graph in a cluster, wherein the cluster comprises a plurality of nodes for executing the plurality of operator tasks, and each parallel computing graph corresponds to at least one operator scheduling scheme; and scheduling and executing the plurality of operator tasks of the determined parallel computing graph in the cluster based on the determined parallel computing graph and the determined operator scheduling scheme; wherein determining the parallel computing graph and the operator scheduling scheme based on the hardware execution cost of each operator task of each of the at least one parallel computing graph in the cluster comprises: according to an operator characteristic of each of the at least one parallel computing graph, a scheduling characteristic of the operator scheduling scheme and a hardware characteristic of the cluster, predicting a total execution cost of each of the at least one parallel computing graph using the operator scheduling scheme when being processed in the cluster based on a scheduling scheme model, wherein the scheduling characteristic of the operator scheduling scheme comprises at least one of a number and types of in-degree operator tasks of the communication operator tasks, a number and types of out-degree operator tasks of the communication operator tasks; and determining the parallel computing graph and the operator scheduling scheme based on the predicted total execution cost. according to an operator characteristic of each of the at least one parallel computing graph, a scheduling characteristic of the operator scheduling scheme and a hardware characteristic of the cluster, predicting a total execution cost of each of the at least one parallel computing graph using the operator scheduling scheme when being processed in the cluster based on a scheduling scheme model, wherein the scheduling characteristic of the operator scheduling scheme comprises at least one of a number and types of in-degree operator tasks of the communication operator tasks, a number and types of out-degree operator tasks of the communication operator tasks; and determining the parallel computing graph and the operator scheduling scheme based on the predicted total execution cost.