Skip to contentSkip to conversation

No 100 HZ timer !

DISCUSSION Mark Salisbury 1 participant 1 message Apr 12, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines · Bret Indrelee

Current generation PCs can easily handle 1000s of interrupts a second if you keep the overhead small.

the PC centric implementation of the ticked system is one of its major flaws.

there are architectures which the cost of a fixed interval is the same as a variable interval, i.e. no reload register, so you must explicitely load a value each interrupt anyway. and if you want accurate intervals, you must perform a calculation each reload, and not just load a static value, because you don't know how many cycles it took from the time the interrupt happened till you get to the reload line because the int may have been masked or lower pri than another interrupt.

also, why handle 1000's of interrupts if you only need to handle 10?

Signature · 11 lines
/*------------------------------------------------**
**   Mark Salisbury | Mercury Computer Systems    **
**   [email protected]     | System OS - Kernel Team     **
**------------------------------------------------**
**  I will be riding in the Multiple Sclerosis    **
**  Great Mass Getaway, a 150 mile bike ride from **
**  Boston to Provincetown.  Last year I raised   **
**  over $1200.  This year I would like to beat   **
**  that.  If you would like to contribute,       **
**  please contact me.                            **
**------------------------------------------------*/