×

Method and system for distributing asynchronous input from a system input queue to reduce context switches

  • US 5,666,523 A
  • Filed: 11/06/1995
  • Issued: 09/09/1997
  • Est. Priority Date: 06/30/1994
  • Status: Expired due to Term
First Claim
Patent Images

1. In a computer system comprising a processor executing a multithreaded operating system, a memory in which a plurality of threads are loaded, and an input/output device for entering input directed to the threads, a system for reducing context switches when distributing the input to the threads, the system comprising:

  • a system input queue for storing input when it is received;

    a thread input queue for each thread for storing input directed to the thread;

    a system thread for executing code for distributing input from the system input queue to the thread input queue of the thread to which the input is directed;

    a synchronization mechanism for the code for distributing input from the system input queue, wherein the system thread must determine whether the synchronization mechanism is already owned before the system thread can begin executing;

    a selected thread that owns the synchronization mechanism; and

    a mechanism for the selected thread to determine that input has been received in the system input queue and for, in response to input being received, calling the code for distributing input from the selected thread to avoid a context switch.

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