The invention discloses a task execution method, which is applied to a queue set, a plurality of queues are arranged in the queue set, each queue is provided with a priority corresponding to the queue, each task to be executed is distributed to the corresponding queue according to the task attribute of the task, and the method comprises the following steps: in a preset polling period, executing the task according to the priority of the task to be executed; according to the sequence of the priorities of all the queues from high to low, executing the tasks of the target number in each queue in sequence, wherein the priorities of the queues are in positive correlation with the target number. By applying the method, a plurality of queues can be set in the queue set, the queues are started in apolling mode according to the priority sequence of the queues, the number of tasks executed each time in the polling process is set for each queue according to the priority of each queue, the numberof tasks executed by the queues with the high priorities is large, and the tasks are executed in a multi-queue polling mode. Therefore, task execution is accelerated, the problem of queue congestion caused when a large number of tasks need to be executed is avoided, and then the task processing efficiency is improved.