1. A system, comprising a Java execution flow class that represents an execution flow context, the execution flow class comprising an execution flow execution method and a constructor that creates an execution flow context; an execution flow scheduler object which comprises a Java native execution flow activation method; a Java virtual machine; and an interrupt handler class that extends the execution flow class, wherein the interrupt handler class comprises a handler method and an execution flow execution method that overrides the execution flow execution method of the execution flow class, wherein an interrupt handler object is instantiated using the interrupt handler class, wherein the handler method of the interrupt handler class comprises one or more instructions of an interrupt handler for a device interrupt, the constructor creates an execution flow context for the interrupt handler, and the Java virtual machine invokes the execution flow activation method to switch from a currently executing execution flow context to the interrupt handler execution flow context to execute the one or more instructions after the device interrupt is signaled.