Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Can an interrupt be processed by software without the need for hardware suppport? Assume an x86 architecture.

share|improve this question

closed as off topic by Gilles, Stéphane Gimenez, Renan, Ulrich Dangel, jw013 Aug 31 '12 at 20:15

Questions on Unix & Linux Stack Exchange are expected to relate to Unix or Linux within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

3  
Interrupts are generated by hardware. This question doesnt make much sense. Are you wanting software to generate an interrupt? –  Patrick Mar 24 '12 at 4:32
    
... yeah... I may be mistaken here, but I believe the point of an interrupt is to flag the CPU so that it hands control of something to some specific piece of code. Interrupts are always processed by software (the handling code called by the CPU), but without hardware (CPU) support, you can't have interrupts. –  njsg Mar 24 '12 at 9:19
    
What's the connection with Unix? You might want to ask on Stack Overflow, a Q&A site about programming. But you'll need to explain what you mean by “need for hardware support”: is there some concrete programming problem you're facing? Are you studying chip design? –  Gilles Mar 25 '12 at 0:11
    
@Patrick, that is true; but many architectures have instructions that force an interrupt (the famous int 0x80 that used to invoke a system call in Linux is a case in point), also doing several stupid things wins you an interrupt (1 / 0, sqrt(-1.0) are examples). –  vonbrand Feb 10 '13 at 1:54
add comment

1 Answer 1

I think you are mixing what you are trying to ask.

There are hardware interrupts generated by events on various devices.

But you can definitely look at the question here: http://stackoverflow.com/questions/1245809/what-is-int-21h

About DOS Interrupt 21h which was used to handle certain Software Only functions like program exit.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.