A configuration method of a computing task, an execution method of the computing task, and an electronic device. The configuration method of the computing task includes adding a first instruction to an
executable instruction sequence corresponding to a first subtask, wherein the first instruction is configured to determine whether the first subtask is activated, and to cause the
executable instruction sequence corresponding to the first subtask to perform a corresponding operation when the first subtask is activated; and adding a second instruction to the
executable instruction sequence corresponding to the first subtask, wherein the second instruction is configured to set a second subtask to an activated state. In the configuration method and the execution method of the computing task, the first subtask and the second subtask are automatically triggered to execute, and the second subtask does not need to be actively activated in a
control flow by a host-side processor when the second subtask is executed, thereby simplifying an
application layer control flow, reducing a burden caused by
control layer code, increasing performance, saving an overhead of scheduling of the host-side processor for a high-
throughput and low-latency exclusive application
scenario.