×

System and method for handling threads of execution

  • US 6,711,739 B1
  • Filed: 11/08/1999
  • Issued: 03/23/2004
  • Est. Priority Date: 11/08/1999
  • Status: Expired due to Fees
First Claim
Patent Images

1. A system, comprising:

  • a dedicated Java thread handler class which includes;

    a start method that sets a target variable to indicate that a thread extending said dedicated Java thread handler class is running;

    an abstract run method; and

    a stop method that sets said target variable to indicate that said thread extending said Java class is to be stopped;

    wherein said dedicated Java thread handler class is configured to be extended by custom thread subclasses that each includes a run method that overrides said abstract run method of said Java class, wherein said dedicated Java thread handler class does not include functionality particular to any of the custom thread subclasses, wherein said run method of one of the custom thread subclasses;

    provides one or more instructions to be executed within said thread, wherein said instructions are configured to access one or more objects during execution of said thread;

    provides one or more checks during execution of said thread to determine if said target variable indicates that said thread is to be stopped; and

    completes execution of said run method if one of the one or more checks determines that said thread is to be stopped;

    wherein completing execution of said run method if one of the one or more checks determines that said thread is to be stopped stops the thread without throwing an exception and leaves each of said one or more objects in a consistent state.

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