歡迎來到 https://hackmd.io/@coscup/2019 共筆
請從這裡開始
跨 Threads 執行時,誰先誰後?
透過不同語言的 memory model 可以看出先後順序的關係
##compile instrumentation
void foo(int *p)
`{
*p=42;
}
void foo(int *p)
{
_tsan_fun_entry
}
How to compare
For each thread , maintain a clock vector for all other threads
For each sync variable , maintain…
code related to clock
void ThreadClock::acquire(const SyncClock *src)
{ for(inti=0;i<kMaxThreads;i++)
clock[1]=max(clock[i],src->clock[1]);}
void ThreadClock::()
COSCUP2019
系統軟體社群議程
IB201
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing