×

Direct switching of software threads by selectively bypassing run queue based on selection criteria

  • US 8,584,138 B2
  • Filed: 07/30/2007
  • Issued: 11/12/2013
  • Est. Priority Date: 07/30/2007
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising:

  • providing a run queue to establish an order for a scheduler to schedule software threads for execution;

    using a first thread to work on a resource;

    using the first thread to issue a wakeup call to a second thread that is in a sleep state in a sleep queue;

    removing the second thread from the sleep state;

    switching out the first thread from working on the resource;

    checking predetermined selection criteria to determine if direct switching of the second thread into the resource is permissible;

    using the wakeup call to trigger the scheduler to selectively bypass the ordering established by the run queue and switch in the second thread to allow the second thread to work on the resource based on the predetermined selection criteria; and

    running the second thread on the resource for a remaining timeslice value that is not used by the first thread.

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