×

Cross address space thread control in a multithreaded environment

  • US 5,632,032 A
  • Filed: 02/07/1994
  • Issued: 05/20/1997
  • Est. Priority Date: 02/07/1994
  • Status: Expired due to Term
First Claim
Patent Images

1. In a computer system having an application comprising a plurality of threads executing concurrently in a common address space, a method of handling the occurrence of a new event on a first one of said threads while a previous event on a second one of said threads is currently being processed, comprising the steps of:

  • (a) defining a flag indicating whether a previous event on one of said threads is currently being processed;

    (b) defining a deferred event queue containing an entry for each event that cannot be processed immediately, said entry identifying the thread on which a deferred event occurred; and

    (c) having said first one of said threads, in response to the occurrence of a new event on said thread;

    (1) test said flag to determine whether a previous event is currently being processed;

    (2) if said flag indicates that a previous event is not being processed, set said flag and process the new event; and

    (3) if said flag indicates that a previous event is being processed, add the new event to said queue and suspend its own execution without processing said new event.

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