×

Mutual exculsion system and method for restarting critical sections of code when preempted during a critical section

  • US 6,697,834 B1
  • Filed: 12/01/1999
  • Issued: 02/24/2004
  • Est. Priority Date: 12/01/1999
  • Status: Expired due to Term
First Claim
Patent Images

1. A mutual exclusion arrangement for use in connection with a computer, the computer being configured to execute at least one program having at least one thread in a series of time slots, the mutual exclusion arrangement comprising:

  • A. associated with said computer, an operating system including a signal generator configured to generate a signal, in response to detection of a non-restorable trap indicator being set by the at least one thread, for provision to said at least one thread when the computer initiates processing of said at least one thread in one of said time slots, the signal generator including;

    the non-restorable trap indicator having a set condition and a clear condition, a control module configured to, in response to the end of a time slot, enable the at least one thread to resume execution, the control module being further configured to, before enabling the at least one thread to resume execution, test the condition of the non-restorable trap indicator and, if it is in the set condition, trap, and a trap handler configured to, in response to a trap by said control module, generate said signal; and

    B. associated with said at least one thread, a signal handler configured to, in response to said signal, determine whether the thread, when it begins execution in the time slot, will be executing a section of code that is to be executed in an atomic manner, and, if so, enable the thread to begin execution at a beginning of said section, and otherwise enable said thread to begin execution subsequent to previously-executed code.

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