I am confused by how to find the efficiency of a cpu given some information from a sample problem. I have been searching the web, but everything I can find is either too advanced for what I need, or doesn't relate exactly. Given that I cannot find a formula for cpu efficiency using polling, I also cannot find one for interrupt mechanism. I did find something on stackoverflow, but even that was not that helpful to me :/
Say that 1) polling is used on a device that operates at 150 char/sec. 2) the polling loop has 200 instructions and 3) the cpu speed is 2 MIPS. And how would I know how many times the loop is run, and the efficiency?
Given that, how would the interrupt method equivalent be different?
I appreciate any help that anyone can offer, because this is confusing to me and I do not know what to do with those numbers. I did read about Amdahl's law but I can't relate that to this either...