Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

2 results about "Threaded code" patented technology

In computer science, the term threaded code refers to a programming technique where the code has a form that essentially consists entirely of calls to subroutines. It is often, but not only, found in compiler implementations that generate code in that form and/or are implemented in that form themselves. The code may be processed by an interpreter, or may simply be a sequence of machine code call instructions.

Occasionally yielding control to other threads

Code running on a processing unit can retain a hold on an active thread thereby preventing another thread running on the processing unit from executing. This can occur when the code requests more threads to be executed than the processing unit can give forward progress to, e.g., more threads than can be run simultaneously. Inserting the conventional yield instruction can lead to processing inefficiency such that the yield instruction can be executed more times than necessary thereby leading to an inefficiency in processing cycles of the processing unit performing the thread-switching routines. A yield occasionally instruction can be inserted into the code instead of the yield instruction. The yield occasionally can limit the times a yield instruction is executed thereby improving the efficiency of the processing cycles. The yield occasionally instruction can be used in non-terminating regions of the code, where the forward progress of other threads cannot be guaranteed.
Owner:NVIDIA CORP

Cross-process operation CPU core binding method and device, equipment and storage medium

The invention discloses a CPU core binding method and device for cross-process operation, equipment and a storage medium, an eBPF code segment is inserted in an IPC driver, the IPC driver responds to an IPC operation request to determine a thread ID of a target thread, the eBPF code segment returns the thread ID to a service process before the target thread is awakened, the service process binds the target thread to a target CPU core based on the thread ID, and the target CPU core binds the target thread to the target CPU core based on the target CPU core. According to the method and the device, the IPC operation request is responded on the target CPU core, a user does not need to register a target process ID, a register does not need to be monitored to capture the process ID, and the target process does not need to be pre-judged through a complex algorithm, so that the target thread needing to be awakened by the IPC drive in the kernel is identified through the inserted eBPF code segment to perform the core binding operation during cross-process core binding operation; the method is suitable for CPUs of various architectures, the compatibility is good, the algorithm is simple, the accurate thread ID can be obtained, a user does not need to obtain the thread ID, and the user friendliness is improved.
Owner:HUNAN KAIHONG ZHIGU DIGITAL IND DEV CO LTD