×

Deferred task swapping in a multithreaded environment

  • US 7,536,690 B2
  • Filed: 09/16/2003
  • Issued: 05/19/2009
  • Est. Priority Date: 11/13/1998
  • Status: Expired due to Term
First Claim
Patent Images

1. A method in a computer system for scheduling tasks, the method comprising:

  • notifying a task executing on a parallel processor architecture having multiple simultaneously executing protection domains that the task is being preempted from utilizing the processor;

    in response to the notification, receiving an indication from the task that it is ready to be swapped out and an indication as to whether the task is blocked;

    swapping the task out; and

    after swapping the task out,when it is determined that the task can be swapped back in,when it is determined that the task indicated that it was blocked,when it is determined that an event occurred that may cause the task to unblock,selecting a protection domain in which to execute the task,swapping the task in, andexecuting the task in the selected protection domain, andwhen it is determined that an event did not occur that may cause the task to unblock, deferring the swapping in of the task until an event occurs that may cause the task to become unblocked, andwhen it is determined that the task did not indicate that it was blocked,selecting a protection domain in which to execute the task, swapping the task in, andexecuting the task in the selected protection domainwherein the selected protection domain is different from the protection domain in which the task was originally executing so that when the task is swapped back in, the task executes within a different protection domain than the one in which it was originally executing.

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