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.