OS-Interrupt Processing and Classes

INTERRUPT PROCESSING: An interrupt is an event that alters the sequence in which a processor executes instructions. It is generated by th...

INTERRUPT PROCESSING:

An interrupt is an event that alters the sequence in which a processor executes instructions. It is generated by the Hardware of the computer system. When an interrupt occurs.
  1.  The operating system gains control.
  2.  The operating system saves the state of the interrupted process. In many systems this information is stored in the interrupted process’s PCB.
  3.  The operating system analyzes the interrupt and passes control to the appropriate routing to handle the interrupt.
  4.  The interrupt handler routine processes the interrupt.
  5.  The state of the interrupted process is restored.
  6.  The interrupted process executes.
An interrupt may be initiated by a running process called a trap and said to be synchronous with the operation of the process or it may be caused by some event that may or may not be related to the running process it is said to be asynchronous with the operation of the process.

INTERRUPT CLASSES:

There are six interrupt classes. They are

* SVC (Supervisor Call) interrupts.

These are initiated by a running process that execute the svc is a user generated request for a particular system service such as performing input/output, obtaining more storage, or communicating with the system operator.

* I/O interrupts:

These are initiated by the input/output hardware. They signal to the cpu that the status of a channel or device has changed. For eg., they are caused when an I/O operation completes, when an I/O error occurs.

* External interrupts:

These are caused by various events including the expiration of a quantum on an interrupting clock or the receipt of a signal from another processor on a multiprocessor system.

* Restart interrupts:

These occur when the operator presses the restart button or arrival of restart signal processor instruction from another processor on a multiprocessor system.
* Program check interrupts:

These may occur when a programs machine language instructions are executed. These problems include division by zero, arithmetic overflow or underflow, data is in wrong format, attempt to execute an invalid operation code or attempt to refer a memory location that do not exist or attempt to refer protected resource.

* Machine check interrupts:

These are caused by multi-functioning hardware.
Name

ADO,131,ASP,3,C++,61,CORE JAVA,1,CSS,115,HTML,297,index,5,JAVASCRIPT,210,OS,47,PHP,65,SAD,53,SERVLETS,23,SOFTWARE ENGINEERING,245,SQL,71,TCP/IP,1,XHTML,9,XML,18,
ltr
item
Best Online Tutorials | Source codes | Programming Languages: OS-Interrupt Processing and Classes
OS-Interrupt Processing and Classes
Best Online Tutorials | Source codes | Programming Languages
https://www.1000sourcecodes.com/2012/09/os6-interrupt-processing-and-classes.html
https://www.1000sourcecodes.com/
https://www.1000sourcecodes.com/
https://www.1000sourcecodes.com/2012/09/os6-interrupt-processing-and-classes.html
true
357226456970214079
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content