Method and system for thread abstraction
First Claim
1. A computer system, comprisinga Java execution flow class that represents an execution flow context, the execution flow class defining an execution flow execution method and a constructor that creates an execution flow context;
- an execution flow scheduler comprising a 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;
a Java scheduler executable on the Java virtual machine; and
a Java thread class that extends the execution flow class, wherein the Java thread class defines an execution flow execution method that overrides the execution flow execution method of the execution flow class,wherein a thread object comprising one or more instructions of a thread is instantiated using a custom thread class that extends the Java thread class, the constructor creates an execution flow context for the thread, and the Java scheduler invokes the execution flow activation method to switch to the thread execution flow context.
1 Assignment
0 Petitions
Accused Products
Abstract
Systems, methods, and computer-readable media supporting thread abstraction in Java are provided. In some illustrative embodiments, a system is provided that includes a Java execution flow class that represents an execution flow context, an execution flow scheduler object including a Java native execution flow activation method, a Java virtual machine, a Java scheduler that executes on the Java virtual machine, and a Java thread class that extends the execution flow class. The execution flow class includes an execution flow execution method and a constructor that creates an execution flow context. The Java thread class includes an execution flow execution method that overrides the execution flow execution method of the execution flow class. In this system, a thread object including one or more instructions of a thread is instantiated using a custom thread class that extends the Java thread class, the constructor creates an execution flow context for the thread, and the Java scheduler invokes the execution flow activation method to switch from a currently executing execution flow context to the thread execution flow context to execute the one or more instructions.
-
Citations
26 Claims
-
1. A computer system, comprising
a Java execution flow class that represents an execution flow context, the execution flow class defining an execution flow execution method and a constructor that creates an execution flow context; -
an execution flow scheduler comprising a 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; a Java scheduler executable on the Java virtual machine; and a Java thread class that extends the execution flow class, wherein the Java thread class defines an execution flow execution method that overrides the execution flow execution method of the execution flow class, wherein a thread object comprising one or more instructions of a thread is instantiated using a custom thread class that extends the Java thread class, the constructor creates an execution flow context for the thread, and the Java scheduler invokes the execution flow activation method to switch to the thread execution flow context. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method for executing a thread in a Java application, the method comprising:
-
instantiating a thread object comprising one or more instructions of the thread using a custom thread class that extends a Java thread class that extends an execution flow class, wherein an execution flow context for the thread is created and wherein the Java thread class defines an execution flow execution method that overrides an execution flow execution method of the execution flow class; and invoking a Java native execution flow activation method comprised in an execution flow scheduler to switch to the thread execution flow context. - View Dependent Claims (10, 11, 12, 13, 14, 15)
-
-
16. A computer-readable medium storing a Java software system that, when executed by a processor, performs a method for executing a thread, the method comprising:
-
instantiating a thread object comprising one or more instructions of the thread using a custom thread class that extends a Java thread class that extends an execution flow class, wherein an execution flow context for the thread is created and wherein the Java thread class defines an execution flow execution method that overrides an execution flow execution method of the execution flow class; and invoking a Java native execution flow activation method comprised in an execution flow scheduler to switch to the thread execution flow context. - View Dependent Claims (17, 18, 19, 20)
-
-
21. A system, comprising:
-
a processor; a Java software system configured to execute on the processor, the Java software system comprising a Java virtual machine, wherein the Java software system is configured to instantiate an object comprising one or more instructions of a thread using a custom thread class that extends a Java thread class that extends an execution flow class, wherein an execution flow context for the thread is created and wherein the Java thread class defines an execution flow execution method that overrides an execution flow execution method of the execution flow class; and to invoke a Java native execution flow activation method comprised in an execution flow scheduler to switch to the thread execution flow context. - View Dependent Claims (22, 23, 24, 25, 26)
-
Specification