measuring context switch time between two threads
Hi Guys ,
could you help me out with a sample code for measuring context switch between two threads or processes using priority changing of one thread in another so that control tranfers each time to each thread . ex T1 gets control first then T2 , then T1, then T2 and so on......... . i want to do it for more than 1000 times in this fashion . plea help me out with a solution.
Thanks in advance .....
bye
sekhar.
|