Go Back   PCMech Forums > Help & Discussion > Software Discussion & Support

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 12-09-2003, 03:28 PM   #1
Member (6 bit)
 
Join Date: Jan 2003
Location: PORTSMOUTH UK
Posts: 40
Send a message via AIM to JUANY
interrupts

hi there, interrupts are allocated numbers called levels, why are the necessary,
JUANY is offline   Reply With Quote
Old 12-09-2003, 03:56 PM   #2
Telcom Tech
 
ktkendall's Avatar
 
Join Date: Feb 2002
Location: Western, Pa.
Posts: 5,409
As far as I understand them, interrupts are how all the other devices call upon the processor and are allocated time by the processor to take care of the specific task that the device is requesting. Hence the name interrupt, cause the device wants to interrupt the processor from whatever it was doing to ask it to give attention to its request.
__________________
If it ain't broke, "TWEAK IT"
ktkendall is offline   Reply With Quote
Old 12-09-2003, 05:55 PM   #3
Member
 
DragonNOA1's Avatar
 
Join Date: Apr 2001
Location: Na Pali Haven
Posts: 2,812
When receiving data and change in status from I/O Ports, we have two methods available to us. We can Poll the port, which involves reading the status of the port at fixed intervals to determine whether any data has been received or a change of status has occurred. If so, then we can branch to a routine to service the ports requests.

As you could imagine, polling the port would consume quite some time. Time which could be used doing other things such refreshing the screen, displaying the time etc. A better alternative would be to use Interrupts. Here, the processor does your tasks such as refreshing the screen, displaying the time etc, and when a I/O Port/Device needs attention as a byte has been received or status has changed, then it sends a Interrupt Request (IRQ) to the processor.

Once the processor receives an Interrupt Request, it finishes its current instruction, places a few things on the stack, and executes the appropriate Interrupt Service Routine (ISR) which can remove the byte from the port and place it in a buffer. Once the ISR has finished, the processor returns to where it left off.

Using this method, the processor doesn't have to waste time, looking to see if your I/O Device is in need of attention, but rather the device will interrupt the processor when it needs attention.

Read more about it here
__________________
*The command line, an elegant weapon for a more civilized age*
DragonNOA1 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:32 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2