Multi-Thread Concurrency Management Method and Related Apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorXiuchang Li
Life of this patent
Estimating the term…
Loading patent…
AssigneeHuawei Technologies Co., Ltd.
InventorXiuchang Li
Estimating the term…
A multi-thread concurrency management method includes dividing a target global variable into multiple variable sub-areas, where the target global variable is used to control multiple threads to access target data, and each variable sub-area in the multiple variable sub-areas includes one or more flag bits; grouping the multiple threads into multiple thread groups, where the multiple threads are used to apply for a permission to read the target data; authorizing a target thread in a target thread group to modify a flag bit in a target variable sub-area, where one thread group in the multiple thread groups one-to-one corresponds to one variable sub-area in the multiple variable sub-areas; and if the target thread successfully modifies the flag bit, allowing the target thread to read the target data.
A multi-thread concurrency management method, comprising:
A multi-thread concurrency management apparatus, comprising:
A computer program product comprising instructions that are stored on a computer-readable medium and that, when executed by at least one processor, cause multi-thread concurrency management apparatus to:
Dependencies are inferred from the claim text.