how to measure the context switch

bridged with qdn.public.qnxrtp.applications
Post Reply
Belinda

how to measure the context switch

Post by Belinda » Wed Jun 12, 2002 4:15 pm

Hi,

Who knows how to measure the conext switch from one thread to another?

Thanks,

Belinda

Xiaodan Tang

Re: how to measure the context switch

Post by Xiaodan Tang » Wed Jun 12, 2002 5:05 pm

Belinda <yye@is2.dal.ca> wrote:
Hi,

Who knows how to measure the conext switch from one thread to another?
Have 2 thread in high priority calling "SchedYield()" in a loop, measure
the total time and how many "SchedYield()" they've go through ?

-xtang

Belinda

Re: how to measure the context switch

Post by Belinda » Mon Jun 24, 2002 3:54 am

Hi,

Could you give me a favor, a small example ?

Thanks,

Belinda


"Xiaodan Tang" <xtang@qnx.com> дÈëÏûÏ¢ÐÂÎÅ:ae7v1m$g1r$1@nntp.qnx.com...
Belinda <yye@is2.dal.ca> wrote:
Hi,

Who knows how to measure the conext switch from one thread to another?

Have 2 thread in high priority calling "SchedYield()" in a loop, measure
the total time and how many "SchedYield()" they've go through ?

-xtang

Post Reply

Return to “qdn.public.qnxrtp.applications”