Invention Grant
- Patent Title: Method and apparatus for scheduling task, device and medium
-
Application No.: US16516055Application Date: 2019-07-18
-
Publication No.: US11294714B2Publication Date: 2022-04-05
- Inventor: Chao Zhang , Zhuo Chen , Weifeng Yao , Liming Xia , Jiankang Xin , Chengliang Deng
- Applicant: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
- Applicant Address: CN Beijing
- Assignee: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
- Current Assignee: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
- Current Assignee Address: CN Beijing
- Agency: Lathrop GPM LLP
- Priority: CN201811003390.2 20180830
- Main IPC: G06F9/46
- IPC: G06F9/46 ; G06F9/48 ; G06F9/50

Abstract:
The present disclosure provides a method and an apparatus for scheduling a task, a device and a medium. The method includes: obtaining a processing task to be executed from a task queue via a main thread bound to a processor, in which the processor is configured to execute the main thread, to execute the processing task; obtaining a newly triggered processing task; in response to determining that a priority of the newly triggered processing task is greater than or equal to a priority of the processing task executed on the main thread, assigning the newly triggered processing task to a standby thread; and dispatching and assigning a processor from at least one processor through the system kernel to execute the standby thread.
Public/Granted literature
- US20200073709A1 METHOD AND APPARATUS FOR SCHEDULING TASK, DEVICE AND MEDIUM Public/Granted day:2020-03-05
Information query