Invention Grant
- Patent Title: Method, apparatus, and electronic device for improving CPU performance
-
Application No.: US17234313Application Date: 2021-04-19
-
Publication No.: US11269693B2Publication Date: 2022-03-08
- Inventor: Ling Ma , Changhua He
- Applicant: Advanced New Technologies Co., Ltd.
- Applicant Address: KY Grand Cayman
- Assignee: Advanced New Technologies Co., Ltd.
- Current Assignee: Advanced New Technologies Co., Ltd.
- Current Assignee Address: KY Grand Cayman
- Agency: Fish & Richardson P.C.
- Priority: CN201910039771.4 20190116
- Main IPC: G06F9/52
- IPC: G06F9/52 ; G06F9/50 ; G06F9/38 ; G06F16/176 ; G06F13/36

Abstract:
Implementations of this specification provide a method, an apparatus, and an electronic device for improving performance of a central processing unit (CPU) comprising a plurality of CPU dies. The method includes the following: enabling threads in each CPU die of the CPU to compete for a mutex of a respective CPU die; identifying the plurality of threads that have obtained the mutexes; enabling the plurality of threads that have obtained the mutexes to compete for a spin lock of the CPU; identifying, from the plurality of threads, a target thread that has obtained the spin lock; executing a critical section corresponding to the target thread that has obtained the spin lock; and releasing the mutex and the spin lock that are obtained by the target thread.
Public/Granted literature
- US20210240547A1 METHOD, APPARATUS, AND ELECTRONIC DEVICE FOR IMPROVING CPU PERFORMANCE Public/Granted day:2021-08-05
Information query