Invention Application
- Patent Title: TASK SCHEDULING METHOD AND APPARATUS
-
Application No.: US16145607Application Date: 2018-09-28
-
Publication No.: US20190034230A1Publication Date: 2019-01-31
- Inventor: Peng ZHAO , Lei LIU , Wei CAO
- Applicant: Huawei Technologies Co., Ltd.
- Priority: CN201610188139.2 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
- US10891158B2 Task scheduling method and apparatus Public/Granted day:2021-01-12
Information query