Monday 20 January 2014

COMPUTER KNOWLEDGE : "INTERRUPTS


Interrupts are signals sent to the CPU by external devices, normally I/O devices. They tell the CPU to stop its current activities and execute the appropriate part of the operating system.

There are three types of interrupts :-
1. Hardware Interupts :
These are generated by hardware devices to signal that they need some attention from the OS. They may have just received some data (e.g., keystrokes on the keyboard or an data on the ethernet card); or they have just completed a task which the operating system previous requested, such as transfering data between the hard drive and memory.

2. Software Interupts :
These are generated by programs when they want to request a system call to be performed by the operating system.

3. Traps :
These are generated by the CPU itself to indicate that some error or condition occured for which assistance from the operating system is needed.

No comments:

Post a Comment