What is main difference between Trap and fault
by Admin _ - What is main difference between Trap and fault
Re: What is main difference between Trap and fault
by Ramla Sheikh - Trap
- Synchronous
- A trap is an exception in a user process.
- After solve the trap processor execute next instruction
Fault
- Un intensional and unrecoverable
- when a program attempts to access a block of memory that is not stored in the physical memory, or RAM
- After solving fault processor execute next instruction
Re: What is main difference between Trap and fault
by Shehroz Bin Saleem - A trap is a software or hardware exception in a user space program, which then context switches into kernel space and invokes the kernel exception vector, which then handles it.
A fault is a particular type of exception that usually occurs when the kernel is performing an operation on behalf of a user space process, and that operation is incapable of being completed. Depending on the context, the kernel may handle it by passing it to the kernel exception vector, or it may trigger handling directly.