[转载] Pthread Multiprogramming# Unix - 噫吁兮,危乎高哉
h*e
1 楼
【 以下文字转载自 Programming 讨论区 】
【 原文由 helpme 所发表 】
Greetings!
I'm trying to generate a stand-alone c program to simulate cache coherence
issue.
I am trying to fork 4 threads, I need to find out the lower bound of the case,
which means the worst case. So I need to make my code to cause as many
cache coherence events as possible, like invalidations, copy back, etc.
CAn any of you give me a hint or provide some reference? Thank you very much
!
【 原文由 helpme 所发表 】
Greetings!
I'm trying to generate a stand-alone c program to simulate cache coherence
issue.
I am trying to fork 4 threads, I need to find out the lower bound of the case,
which means the worst case. So I need to make my code to cause as many
cache coherence events as possible, like invalidations, copy back, etc.
CAn any of you give me a hint or provide some reference? Thank you very much
!