Method and system for implementing an interrupt handler
First Claim
1. A computer system, comprisinga Java execution flow class that represents an execution flow context, the execution flow class defining a first execution flow execution method and a constructor that creates an execution flow context;
- an execution flow scheduler comprising only one Java native execution flow activation method, wherein the execution flow activation method causes a context switch to an execution flow context specified when the execution flow activation method is invoked;
a Java virtual machine executable on a processor of the computer system; and
an interrupt handler class that extends the execution flow class, wherein the interrupt handler class defines a handler method for an interrupt and a second execution flow execution method that overrides the first execution flow execution method and comprises one or more instructions to invoke the handler method,whereinan interrupt handler object is instantiated using the interrupt handler class,the constructor creates an execution flow context for the handler method, andwhen the interrupt is signaled, the Java virtual machine invokes the execution flow activation method to switch to the handler execution flow context and invokes the second execution flow execution method to initiate execution of the handler method.
1 Assignment
0 Petitions
Accused Products
Abstract
A system for interrupt handling in Java is provided that includes an execution flow class, an execution flow scheduler, a Java virtual machine (JVM), and an interrupt handler class that extends the execution flow class. The execution flow class defines an execution flow execution method and a constructor that creates an execution flow context. The interrupt handler class defines a handler method for an interrupt and an execution flow execution method that overrides the execution flow execution method of the execution flow class. An interrupt handler object is instantiated using the interrupt handler class, the constructor creates an execution flow context for the handler method, and when the interrupt is signaled, the JVM invokes a native execution flow activation method in the execution flow scheduler to switch to the handler execution flow context and the execution flow execution method to initiate execution of the handler method.
34 Citations
17 Claims
-
1. A computer system, comprising
a Java execution flow class that represents an execution flow context, the execution flow class defining a first execution flow execution method and a constructor that creates an execution flow context; -
an execution flow scheduler comprising only one Java native execution flow activation method, wherein the execution flow activation method causes a context switch to an execution flow context specified when the execution flow activation method is invoked; a Java virtual machine executable on a processor of the computer system; and an interrupt handler class that extends the execution flow class, wherein the interrupt handler class defines a handler method for an interrupt and a second execution flow execution method that overrides the first execution flow execution method and comprises one or more instructions to invoke the handler method, wherein an interrupt handler object is instantiated using the interrupt handler class, the constructor creates an execution flow context for the handler method, and when the interrupt is signaled, the Java virtual machine invokes the execution flow activation method to switch to the handler execution flow context and invokes the second execution flow execution method to initiate execution of the handler method. - View Dependent Claims (2, 3, 4)
-
-
5. A computer-implemented method for handling an interrupt in a Java operating system comprising a single execution flow scheduler, the execution flow scheduler comprising a single Java native execution flow activation method that causes a context switch to an execution flow context specified when the execution flow activation method is invoked, the computer-implemented method comprising:
-
instantiating an interrupt handler object for the interrupt using an interrupt handler class that extends an execution flow class, defines a handler method for the interrupt, and defines an execution flow execution method that overrides an execution flow execution method defined in the execution flow class and comprises one or more instructions to invoke the handler method, wherein an execution flow context for the handler method is created; invoking the Java native execution flow activation method of the execution flow scheduler to switch to the handler execution flow context when the interrupt is signaled; and invoking the execution flow execution method of the interrupt handler class to initiate execution of the handler method after switching to the handler execution flow context. - View Dependent Claims (6, 7, 8)
-
-
9. A non-transitory computer-readable medium storing a Java software system comprising a single execution flow scheduler, the execution flow scheduler comprising a single Java native execution flow activation method that causes a context switch to an execution flow context specified when the execution flow activation method is invoked, wherein when the Java software system is executed by a processor, a method for handling an interrupt is performed, the method comprising:
-
instantiating an interrupt handler object for the interrupt using an interrupt handler class that extends an execution flow class, defines a handler method for the interrupt, and defines an execution flow execution method that overrides an execution flow execution method defined in the execution flow class and comprises one or more instructions to invoke the handler method, wherein an execution flow context for the handler method is created; invoking the Java native execution flow activation method of the execution flow scheduler to switch to the handler execution flow context when the interrupt is signaled; and invoking the execution flow execution method of the interrupt handler class to initiate execution of the handler method after switching to the handler execution flow context. - View Dependent Claims (10, 11, 12)
-
-
13. A system, comprising:
-
a processor; a Java software system configured to execute on the processor, the Java software system comprising a Java virtual machine and a single execution flow scheduler, the execution flow scheduler comprising a single Java native execution flow activation method that causes a context switch to an execution flow context specified when the execution flow activation method is invoked, wherein the Java software system is configured to instantiate an interrupt handler object for an interrupt using an interrupt handler class that extends an execution flow class, defines a handler method for the interrupt, and defines an execution flow execution method that overrides an execution flow execution method defined in the execution flow class and comprises one or more instructions to invoke the handler method, wherein an execution flow context for the handler method is created; to invoke the Java native execution flow activation method of the execution flow scheduler to switch to the handler execution flow context when the interrupt is signaled; and to invoke the execution flow execution method of the interrupt handler class to initiate execution of the handler method after switching to the handler execution flow context. - View Dependent Claims (14, 15, 16, 17)
-
Specification