This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Handler decides whether to • Abort, or • Return and restart current instruction • Trigger 3: Aborts o Unrecoverable hard error o Action Terminate program Question – is termination always best? • Trigger 4: Traps o Explicitly requested exception o Action Branch to vectored exception handler OS provides requested service at its convenience Return to next instruction o For synchronous triggers resumption of execution is whenever scheduled by OS • Processes o A process is an instance of a running program Logical flow control (determined by code) Private virtaual address space • Different Process o Use execve() to load and run a new program in the context of the current process int execve(char *filename, char *argv, char *envp) •...
View Full Document
- Spring '11
- Computer Science, Subroutine, Control flow, Interrupt, ISR, vectored exception handler