.When the hardware needs service it will request an interrupt.
.A thread is defined as the path of action of software as it executes.
.The execution of the interrupt service routine is called a background thread.
.This thread is created by the hardware interrupt request
.The thread is killed when the interrupt service routine executes the instruction.
.A new thread is created for each interrupt request. It is important to consider each individual request as a separate thread because local variables and registers used in the interrupt service routine are unique and separate from one interrupt event to the next.
.In a multithreaded system we consider the threads as cooperating to perform an overall task.
.When an interrupt is generated
.It sends a signal request to the processor
.The processor suspends the current tasks it is executing
.Then the control is transferred to the interrupt routine
.Then the interrupt routine performs some I/O operations depending on which interrupt function is called or generated by the hardware
.Finally the control is transferred back to the previous executing task at the point
where it was suspended.
No comments:
Post a Comment