×

Executing multiple threads in a processor

  • US 8,341,639 B2
  • Filed: 09/29/2010
  • Issued: 12/25/2012
  • Est. Priority Date: 04/05/2007
  • Status: Expired due to Fees
First Claim
Patent Images

1. An article of manufacture comprising a computer readable storage medium including code executed by a processor to access buffers and perform operations, the operations comprising:

  • setting a replenish thread to be in a state to not run out of credits;

    performing a setting of credits in the buffers for a plurality of threads executed by the processor, wherein the credits for each of the threads comprise a number of credits, wherein one of the threads having credits can be selected for execution and wherein the threads having no credits are not selected for execution;

    alternating among executing the threads having available credits;

    decrementing the credits available for one of the threads to reduce the number of available credits for the thread in response to executing the thread;

    in response to the setting of the credits of the threads, setting a replenish flag for the replenish thread to a first value of at least two values to indicate that the replenish thread will not execute until the threads are not runnable, wherein the threads having no available credits are not runnable;

    determining whether the replenish flag for the replenish thread is set to the first value and whether the threads are runnable; and

    initiating by the replenish thread an operation to reassign credits to the threads in response to the determining that the replenish flag is set to the first value and that the threads are not runnable.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×