Page 1 of 1
No. of Task Switches
Posted: Tue Jun 22, 2004 11:00 pm
by prabuinet
how can I find how many task switches occured in a second?
RE:No. of Task Switches
Posted: Tue Jun 22, 2004 11:00 pm
by hartyl
what about counting? everytime you do a taskswitch, increment a variable. when a second is over (or maybe 10 seconds), you stop and print that value...
but, if you use a timer, then it's quite easy. the timer-interrupt happens every time; if you programmed the time between the interrupts, you can calculate it.