Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Interrupts are really fun. Especially when you have to transfer data from the interrupt to the main application where you can't use locks.
-
I remember writing a gui for dos. Handled all the interrupts for keyboard and mouse. Does DOS do any abstraction? I cannot remember.
-
@Fast-Nop Look at it the other way round. Interrupts (exceptions in general) are very difficult to implement well especially with modern processors that prefetch and speculate like crazy - the hardware needs to run them transparently, without breaking "normal" code (for eg. It's one big reason why you have a reorder buffer in most processors for inorder commit and can't commit out of order, so that you get precise exceptions/interrupts because you can track speculative state easily (the other big reason being speculative branches)). Hardware does all this to provide you a simple abstraction for handling exceptional circumstances that don't belong to normal code flow i.e. it's a much simplified and shielded layer over something extremely complex :p
Y'all SW types have it easy :p
(Don't mind me, just struggled a lot with this recently) -
if i could just be in a quiet fucking environment for 2 fucking minutes. jesus. i hate these fucking people so fucking much making their kids cry intentionally for each others benefits or just making fucking noise or driving around aimlessly just to keep everything fucking consistent.
and on that note we should all have budgets carved out for transportation to keep the fucking traffic down and make clean mass transit options free !
Related Rants
Y'all know when you first hear about interrupts? Maybe on an arduino or something when you're just getting started and learning?
Yea after suffering enough trying to get ISRs running on an x86 just to get keyboard input going, I can safely and securely confirm it's all going downhill.
I love you all.
rant
x86
suffering
c