Invention Grant
- Patent Title: Task scheduling method and apparatus
-
Application No.: US16145607Application Date: 2018-09-28
-
Publication No.: US10891158B2Publication Date: 2021-01-12
- Inventor: Peng Zhao , Lei Liu , Wei Cao
- Applicant: Huawei Technologies Co., Ltd.
- Applicant Address: CN Shenzhen
- Assignee: Huawei Technologies Co., Ltd.
- Current Assignee: Huawei Technologies Co., Ltd.
- Current Assignee Address: CN Shenzhen
- Agency: Leydig, Voit & Mayer, Ltd.
- Priority: CN201610188139 20160329
- Main IPC: G06F9/48
- IPC: G06F9/48

Abstract:
Data contention caused by multiple threads accessing one data block at the same time when used to execute tasks concurrently may be avoided, and difficulty in detecting and debugging a concurrent error may be reduced. A solution is: adding, according to correspondences between multiple tasks and M data blocks that are accessed by the multiple tasks, each of the multiple tasks to a task queue of a data block corresponding to the task; using N threads to execute tasks in N task queues of M task queues concurrently, where each of the N threads executes a task in a task queue of the N task queues, different threads of the N threads execute tasks in different task queues, and 2≤N≤M.
Public/Granted literature
- US20190034230A1 TASK SCHEDULING METHOD AND APPARATUS Public/Granted day:2019-01-31
Information query