rdtsc accuracy across CPU cores

后端 未结 6 725
一生所求
一生所求 2020-11-28 22:53

I am sending network packets from one thread and receiving replies on a 2nd thread that runs on a different CPU core. My process measures the time between send & receiv

6条回答
  •  春和景丽
    2020-11-28 23:20

    You can set thread affinity using sched_set_affinity() API in order to run your thread on one CPU core.

提交回复
热议问题