File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 33memory barrier 也称为 memory fence。
44
55```
6+ ┌─────────────┐ ┌─────────────┐
7+ │ CPU 0 │ │ CPU 1 │
8+ └───────────┬─┘ └───────────┬─┘
9+ ▲ │ ▲ │
10+ │ │ │ │
11+ │ │ │ │
12+ │ │ │ │
13+ │ ▼ │ ▼
14+ │ ┌────────┐ │ ┌────────┐
15+ │◀───┤ Store │ │◀───┤ Store │
16+ ├───▶│ Buffer │ ├───▶│ Buffer │
17+ │ └────┬───┘ │ └───┬────┘
18+ │ │ │ │
19+ │ │ │ │
20+ │ │ │ │
21+ │ │ │ │
22+ │ ▼ │ ▼
23+ ┌──┴────────────┐ ┌──┴────────────┐
24+ │ │ │ │
25+ │ Cache │ │ Cache │
26+ │ │ │ │
27+ └───────┬───────┘ └───────┬───────┘
28+ │ │
29+ │ │
30+ │ │
31+ ┌──────┴──────┐ ┌──────┴──────┐
32+ │ Invalidate │ │ Invalidate │
33+ │ Queue │ │ Queue │
34+ └──────┬──────┘ └──────┬──────┘
35+ │ │
36+ │ Interconnect │
37+ └───────────────┬───────────────┘
38+ │
39+ │
40+ │
41+ │
42+ ┌───────┴───────┐
43+ │ │
44+ │ Memory │
45+ │ │
46+ └───────────────┘
647```
748
849参考资料:
You can’t perform that action at this time.
0 commit comments