发明名称 Data Processing Method and Apparatus
摘要 A data processing method and apparatus, where the method comprises an operating system loads a task code to a reserved hardware thread such that the reserved hardware thread executes the task code subsequently after receiving a hardware thread reservation request. Alternatively, in a process in which an operating system loads a task code to a hardware thread for execution, the hardware thread loads the small task code to a reserved hardware thread for execution without a need to create a thread for a task code corresponding to each task when the hardware thread reads a flag of a small task code.
申请公布号 US2016371123(A1) 申请公布日期 2016.12.22
申请号 US201615255715 申请日期 2016.09.02
申请人 Huawei Technologies Co., Ltd. 发明人 Zhang Lixin;Xie Biwei
分类号 G06F9/50 主分类号 G06F9/50
代理机构 代理人
主权项 1. A data processing method for executing a task code in a computer, wherein the computer runs an operating system to manage execution of a plurality of task codes, wherein the operating system manages a hardware thread pool which comprises multiple hardware threads, and wherein the method being performed by the computer by means of the operating system and comprises: reading, by the operating system, a hardware thread reservation instruction preset in a start position of the task code, wherein the hardware thread reservation instruction comprises a hardware thread reservation request, and wherein the hardware thread reservation request is to request the operating system to allocate a reserved hardware thread in the hardware thread pool for executing the task code; allocating, by the operating system, the reserved hardware thread for executing the task code; loading, by the operating system, the task code to the reserved hardware thread such that the reserved hardware thread executes the loaded task code; and obtaining an execution result from the reserved hardware thread after the task code being executed.
地址 Shenzhen CN