Unlock instant, AI-driven research and patent intelligence for your innovation.

Shared resources in a data processing appartus for executing a plurality of threads

A technology of data processing equipment and shared resources, which is applied in the direction of electrical digital data processing, multi-program device, program control design, etc., and can solve problems such as inability to execute threads with shared resource access rights, system suspension, and threads not allowed to execute, etc.

Active Publication Date: 2017-05-24
ARM LTD
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, the rest of the threads will be able to execute, but the threads that have access to the shared resource will not be able to execute
Deadlock occurs because other threads will not be able to access the shared resource while another thread has access to the shared resource
However, a thread with access to a shared resource may never be allowed to execute
Therefore, no thread makes any progress and the system halts

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Shared resources in a data processing appartus for executing a plurality of threads
  • Shared resources in a data processing appartus for executing a plurality of threads
  • Shared resources in a data processing appartus for executing a plurality of threads

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In one example, a subset of threads has been associated with at least one locking parameter in order to track which thread in the subset has exclusive access to the shared resource. The processor may modify at least one locking parameter in response to the first instruction executed by the thread, thereby indicating that the thread has obtained exclusive access to the shared resource. Similarly, the processor may modify at least one locking parameter in response to the second instruction, thereby indicating that the thread no longer has exclusive access to the shared resource. In selecting selected threads (whose thread program counters are used as the value of the general program counter) and thereby determining which instruction to execute next for a subset of threads, the data processing apparatus may take into account at least one locking parameter. By choosing the value of the general program counter based on locking parameters, it is possible to control which thre...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A data processing apparatus (100) executes threads and includes a general program counter (PC) (120) identifying an instruction to be executed for at least a subset of the threads. Each thread has a thread PC (184). The subset of threads has at least one lock parameter (188, 500-504) for tracking exclusive access to shared resources. In response to a first instruction executed for a thread, the processor (160) modifies the at least one lock parameter (188), (500-504) to indicate that the thread has gained exclusive access to the shared resource. In response to a second instruction, the processor modifies the at least one lock parameter (188, 500-504) to indicate that the thread no longer has exclusive access. A selector (110) selects one of the subset of threads based on the at least one lock parameter (188, 500-504) and sets the general PC (120) to the thread PC (184) of the selected thread.

Description

technical field [0001] This technology relates to the field of digital processing. In particular, the technology studies data processing devices and methods in which multiple threads are executed. Background technique [0002] A data processing device may execute multiple threads. Threads can progress in lockstep. Specifically, each thread may maintain its own program counter. The system itself may maintain its own general-purpose program counter, such that the instruction indicated by the general-purpose program counter is executed for the thread (for which the program counter matches the general-purpose program counter). Such systems may be referred to, for example, as Single Instruction Multiple Thread (SIMT) systems. Thus, at each step, a single instruction is executed for at least a subset of the plurality of threads. Once an instruction has been executed for a subset of threads, the general program counter can be changed to indicate the new instruction. In such s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/38G06F9/52
CPCG06F9/526G06F9/30087G06F9/3009G06F9/3887G06F9/524
Inventor 鲁纳·霍姆大卫·汉纳·曼塞尔
Owner ARM LTD