This disclosure provides a task scheduling method, a task scheduler, a
processing device, an electronic device, and a medium. The method, applied to a task scheduler in a
processing device, includes: comparing the priorities of second tasks in a first task
queue and a second task
queue to determine a priority comparison result; determining a load
timeout result for a target task
queue based on the priority comparison result, wherein the target task queue is a task queue with a higher priority or equal priority among the first and second task queues; determining a task boundary judgment result for the first task queue based on
shared resource usage information of the first task queue; determining a scheduling result for a first task currently awaiting execution in the first task queue based on the priority comparison result, the load
timeout result, and the task boundary judgment result; and, if the scheduling result allows for delivery, delivering the first task to a backend module. Embodiments of this disclosure can improve the efficiency of task scheduling.