No. of Task Switches
RE:No. of Task Switches
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.
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.