×

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

  • US 10,528,350 B2
  • Filed: 07/28/2015
  • Issued: 01/07/2020
  • Est. Priority Date: 09/08/2014
  • Status: Active Grant
First Claim
Patent Images

1. A data processing apparatus configured to execute a plurality of threads, the data processing apparatus comprising:

  • a general program counter to identify one instruction in a stream of instructions to be executed for at least a subset of the plurality of threads, wherein each thread in the subset has an associated thread program counter to identify one instruction in the stream of instructions,selector circuitry configured to select a selected thread of the subset of threads and to set the general program counter to the thread program counter associated with the selected thread; and

    a processor configured to execute an instruction identified by the general program counter for one or more of the subset of threads including the selected thread,wherein the subset of threads is associated with at least one lock parameter for tracking which of the subset of threads has exclusive access to a shared resource;

    wherein the processor is configured to modify the at least one lock parameter to indicate that a thread has gained exclusive access to the shared resource in response to a first instruction executed for that thread, and to modify the at least one lock parameter associated with the thread to indicate that the thread no longer has exclusive access to the shared resource in response to a second instruction executed for that thread; and

    wherein the selector circuitry is configured to select the selected thread based on the at least one lock parameter.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×