Method and system for implementing an interrupt handler
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.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 27 · Forward citations: 7.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
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 ex
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (27)
Non-Patent Literature (5)
- Hewlett Packard, "Threads And The Java Virtual Machine," online at http://h21007.www2.hp.com/dspp/tech/tech-TechDocumentDetailPage-IDX/1,1701,390,00.html.
- Hewlett Packard, "Threads And The Java Virtual Machine," online at http://h21007.www2.hp.com/dspp/tech/tech—TechDocumentDetailPage—IDX/1,1701,390,00.html.
- Sun Microsystems, Inc., "Class Thread" online at: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Thread.html, copyright 2004.
- Sun Microsystems, Inc., "Compiling For The Java Virtual Machine," online at: http://java.sun.com/docs/books/vmspec/2nd-edition/html/Compiling.doc.html, copyright 1999.
- Sun Microsystems, Inc., "Implementing A Thread," online at: http://java.sun.com/docs/books/tutorial/essential/threads/customizing.html, copyright 2005.