×

System and method for supporting adaptive busy wait in a computing environment

  • US 9,558,035 B2
  • Filed: 08/01/2014
  • Issued: 01/31/2017
  • Est. Priority Date: 12/18/2013
  • Status: Active Grant
First Claim
Patent Images

1. A method for supporting queue processing in a computing environment, the method comprising:

  • associating a single thread with a queue in the computing environment, wherein the thread runs on one or more microprocessors;

    using the thread to process a next task from said queue if said queue is not empty;

    waiting for a next task to be received by said queue if said queue is empty;

    adaptively configuring the thread, responsive to a workload of said queue, to be in one of a sleep state and an idle state during said waiting;

    associating a single another thread with another queue in the computing environment, wherein the another thread runs on the one or more microprocessors;

    using the another thread to process another next task from said another queue if said another queue is not empty;

    waiting for another next task to be received by said another queue if said another queue is empty; and

    adaptively configuring the another thread, responsive to another workload of said another queue, to be in one of a sleep state and an idle state during said waiting;

    wherein each of said thread and said another thread are adaptively configured independently to be in the respective sleep state or idle state during said respective waiting, responsive to the workload of said queue and the another workload of said another queue.

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