SlideShare a Scribd company logo
1 of 1
Download to read offline
1.The main difference between Interrupts and Exceptions :-
2.If every program had unrestricted access to the CPU, main memory and the peripheral
devices,the data in memory.would not exist. To prevent this we need the CPU to have at least
two privilege levels.
* They are...
a.User Mode
b.Kernel ModeInterruptsExceptions1.Interrupt can be defined as an event which alters the
sequence of instructions executed by a processor.1.Exception is a run time error caused due to
logical mistake occurred in the program because of wrong inputs given by the user during
program execution.2.Interrupts are used to handle external events2. Exceptions are used to
handle
instruction faults.3.Interrupt is asynchronous.3.Exception is synchronous.4.Interruts are
Hardware Interrupts.4.Exceptions are software interrupts.
Solution
1.The main difference between Interrupts and Exceptions :-
2.If every program had unrestricted access to the CPU, main memory and the peripheral
devices,the data in memory.would not exist. To prevent this we need the CPU to have at least
two privilege levels.
* They are...
a.User Mode
b.Kernel ModeInterruptsExceptions1.Interrupt can be defined as an event which alters the
sequence of instructions executed by a processor.1.Exception is a run time error caused due to
logical mistake occurred in the program because of wrong inputs given by the user during
program execution.2.Interrupts are used to handle external events2. Exceptions are used to
handle
instruction faults.3.Interrupt is asynchronous.3.Exception is synchronous.4.Interruts are
Hardware Interrupts.4.Exceptions are software interrupts.

More Related Content

Similar to 1.The main difference between Interrupts and Exceptions -2.If eve.pdf

Lec 2 introduction to computer -ii
Lec 2 introduction to computer -iiLec 2 introduction to computer -ii
Lec 2 introduction to computer -ii
Adnan Khan
 

Similar to 1.The main difference between Interrupts and Exceptions -2.If eve.pdf (20)

EE8691 – EMBEDDED SYSTEMS.pptx
EE8691 – EMBEDDED SYSTEMS.pptxEE8691 – EMBEDDED SYSTEMS.pptx
EE8691 – EMBEDDED SYSTEMS.pptx
 
Kernel mode vs user mode in linux
Kernel mode vs user mode in linuxKernel mode vs user mode in linux
Kernel mode vs user mode in linux
 
Lec 2 introduction to computer -ii
Lec 2 introduction to computer -iiLec 2 introduction to computer -ii
Lec 2 introduction to computer -ii
 
Computer Programming By Prof.(Dr.) Anand K. Tripathi ,Mrs Monika Tripathi
Computer Programming By Prof.(Dr.) Anand K. Tripathi ,Mrs Monika TripathiComputer Programming By Prof.(Dr.) Anand K. Tripathi ,Mrs Monika Tripathi
Computer Programming By Prof.(Dr.) Anand K. Tripathi ,Mrs Monika Tripathi
 
Note 3
Note 3Note 3
Note 3
 
Win power manual
Win power manualWin power manual
Win power manual
 
Computer Operations & Packages
Computer Operations & PackagesComputer Operations & Packages
Computer Operations & Packages
 
CPU and memory
CPU and memoryCPU and memory
CPU and memory
 
Monolithic kernel
Monolithic kernelMonolithic kernel
Monolithic kernel
 
computer organization and architecture notes
computer organization and architecture notescomputer organization and architecture notes
computer organization and architecture notes
 
I_O-co-processors.ppt
I_O-co-processors.pptI_O-co-processors.ppt
I_O-co-processors.ppt
 
Computer lessons 2
Computer lessons 2Computer lessons 2
Computer lessons 2
 
Hardware & Software
Hardware & SoftwareHardware & Software
Hardware & Software
 
What is computer 1
What is computer 1What is computer 1
What is computer 1
 
Module 1b OS.pptx
Module 1b OS.pptxModule 1b OS.pptx
Module 1b OS.pptx
 
lecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categorieslecture 1 (Part 2) kernal and its categories
lecture 1 (Part 2) kernal and its categories
 
Lecture 2 introduction to computer
Lecture 2 introduction to computerLecture 2 introduction to computer
Lecture 2 introduction to computer
 
ppt of features of operating system.pptx
ppt of features of operating system.pptxppt of features of operating system.pptx
ppt of features of operating system.pptx
 
Interrupts
InterruptsInterrupts
Interrupts
 
anh.docx
anh.docxanh.docx
anh.docx
 

More from asif1401

#includeiostream#includestdlib.husing namespace std;class .pdf
#includeiostream#includestdlib.husing namespace std;class .pdf#includeiostream#includestdlib.husing namespace std;class .pdf
#includeiostream#includestdlib.husing namespace std;class .pdf
asif1401
 
(1) Acid rain occurs when the gases SO2 ,NOx react with water,oxygen.pdf
(1) Acid rain occurs when the gases SO2 ,NOx react with water,oxygen.pdf(1) Acid rain occurs when the gases SO2 ,NOx react with water,oxygen.pdf
(1) Acid rain occurs when the gases SO2 ,NOx react with water,oxygen.pdf
asif1401
 
The main class of the tictoe game looks like.public class Main {.pdf
The main class of the tictoe game looks like.public class Main {.pdfThe main class of the tictoe game looks like.public class Main {.pdf
The main class of the tictoe game looks like.public class Main {.pdf
asif1401
 
QuestionAnswer1TrueThe corpus callosum , otherwise called th.pdf
QuestionAnswer1TrueThe corpus callosum , otherwise called th.pdfQuestionAnswer1TrueThe corpus callosum , otherwise called th.pdf
QuestionAnswer1TrueThe corpus callosum , otherwise called th.pdf
asif1401
 

More from asif1401 (20)

the reaction of A to B since its Ea is the highes.pdf
                     the reaction of A to B since its Ea is the highes.pdf                     the reaction of A to B since its Ea is the highes.pdf
the reaction of A to B since its Ea is the highes.pdf
 
the one thing that comes to mind for me is about .pdf
                     the one thing that comes to mind for me is about .pdf                     the one thing that comes to mind for me is about .pdf
the one thing that comes to mind for me is about .pdf
 
#includeiostream#includestdlib.husing namespace std;class .pdf
#includeiostream#includestdlib.husing namespace std;class .pdf#includeiostream#includestdlib.husing namespace std;class .pdf
#includeiostream#includestdlib.husing namespace std;class .pdf
 
(1) Acid rain occurs when the gases SO2 ,NOx react with water,oxygen.pdf
(1) Acid rain occurs when the gases SO2 ,NOx react with water,oxygen.pdf(1) Acid rain occurs when the gases SO2 ,NOx react with water,oxygen.pdf
(1) Acid rain occurs when the gases SO2 ,NOx react with water,oxygen.pdf
 
Iodine will replace both Cl and Br It will be SN2.pdf
                     Iodine will replace both Cl and Br It will be SN2.pdf                     Iodine will replace both Cl and Br It will be SN2.pdf
Iodine will replace both Cl and Br It will be SN2.pdf
 
The number of outcomes in the event A is 4 Yes event A is a s.pdf
 The number of outcomes in the event A is 4 Yes event A is a s.pdf The number of outcomes in the event A is 4 Yes event A is a s.pdf
The number of outcomes in the event A is 4 Yes event A is a s.pdf
 
There were very few planetary leftovers in this r.pdf
                     There were very few planetary leftovers in this r.pdf                     There were very few planetary leftovers in this r.pdf
There were very few planetary leftovers in this r.pdf
 
i have no idea. im just seeing if i get karma p.pdf
                     i have no idea. im just seeing if i get karma p.pdf                     i have no idea. im just seeing if i get karma p.pdf
i have no idea. im just seeing if i get karma p.pdf
 
Fe+3 solution is more acidic because it produces .pdf
                     Fe+3 solution is more acidic because it produces .pdf                     Fe+3 solution is more acidic because it produces .pdf
Fe+3 solution is more acidic because it produces .pdf
 
Copper chloride. Copper ions will form precipitat.pdf
                     Copper chloride. Copper ions will form precipitat.pdf                     Copper chloride. Copper ions will form precipitat.pdf
Copper chloride. Copper ions will form precipitat.pdf
 
   CCl4 molecule can give IR and Raman spectroscopy.   Selection r.pdf
   CCl4 molecule can give IR and Raman spectroscopy.   Selection r.pdf   CCl4 molecule can give IR and Raman spectroscopy.   Selection r.pdf
   CCl4 molecule can give IR and Raman spectroscopy.   Selection r.pdf
 
User interface design processNavigation DesignInput DesignOu.pdf
User interface design processNavigation DesignInput DesignOu.pdfUser interface design processNavigation DesignInput DesignOu.pdf
User interface design processNavigation DesignInput DesignOu.pdf
 
True.it  is an example of an independent-measures designSolution.pdf
True.it  is an example of an independent-measures designSolution.pdfTrue.it  is an example of an independent-measures designSolution.pdf
True.it  is an example of an independent-measures designSolution.pdf
 
The main class of the tictoe game looks like.public class Main {.pdf
The main class of the tictoe game looks like.public class Main {.pdfThe main class of the tictoe game looks like.public class Main {.pdf
The main class of the tictoe game looks like.public class Main {.pdf
 
the inner electronsSolutionthe inner electrons.pdf
the inner electronsSolutionthe inner electrons.pdfthe inner electronsSolutionthe inner electrons.pdf
the inner electronsSolutionthe inner electrons.pdf
 
SolutionThe investees net income should be recorded as an increa.pdf
SolutionThe investees net income should be recorded as an increa.pdfSolutionThe investees net income should be recorded as an increa.pdf
SolutionThe investees net income should be recorded as an increa.pdf
 
QuestionAnswer1TrueThe corpus callosum , otherwise called th.pdf
QuestionAnswer1TrueThe corpus callosum , otherwise called th.pdfQuestionAnswer1TrueThe corpus callosum , otherwise called th.pdf
QuestionAnswer1TrueThe corpus callosum , otherwise called th.pdf
 
No. of Moles = Given MassMolecular Mass=3.0 x 101398= 3.06101.pdf
No. of Moles = Given MassMolecular Mass=3.0 x 101398= 3.06101.pdfNo. of Moles = Given MassMolecular Mass=3.0 x 101398= 3.06101.pdf
No. of Moles = Given MassMolecular Mass=3.0 x 101398= 3.06101.pdf
 
Let the sample size be n ,Mean of the sample = 27 (same as pop.pdf
Let the sample size be n ,Mean of the sample = 27 (same as pop.pdfLet the sample size be n ,Mean of the sample = 27 (same as pop.pdf
Let the sample size be n ,Mean of the sample = 27 (same as pop.pdf
 
JeffSolutionJeff.pdf
JeffSolutionJeff.pdfJeffSolutionJeff.pdf
JeffSolutionJeff.pdf
 

Recently uploaded

會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 

Recently uploaded (20)

會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 

1.The main difference between Interrupts and Exceptions -2.If eve.pdf

  • 1. 1.The main difference between Interrupts and Exceptions :- 2.If every program had unrestricted access to the CPU, main memory and the peripheral devices,the data in memory.would not exist. To prevent this we need the CPU to have at least two privilege levels. * They are... a.User Mode b.Kernel ModeInterruptsExceptions1.Interrupt can be defined as an event which alters the sequence of instructions executed by a processor.1.Exception is a run time error caused due to logical mistake occurred in the program because of wrong inputs given by the user during program execution.2.Interrupts are used to handle external events2. Exceptions are used to handle instruction faults.3.Interrupt is asynchronous.3.Exception is synchronous.4.Interruts are Hardware Interrupts.4.Exceptions are software interrupts. Solution 1.The main difference between Interrupts and Exceptions :- 2.If every program had unrestricted access to the CPU, main memory and the peripheral devices,the data in memory.would not exist. To prevent this we need the CPU to have at least two privilege levels. * They are... a.User Mode b.Kernel ModeInterruptsExceptions1.Interrupt can be defined as an event which alters the sequence of instructions executed by a processor.1.Exception is a run time error caused due to logical mistake occurred in the program because of wrong inputs given by the user during program execution.2.Interrupts are used to handle external events2. Exceptions are used to handle instruction faults.3.Interrupt is asynchronous.3.Exception is synchronous.4.Interruts are Hardware Interrupts.4.Exceptions are software interrupts.