# 2017q1 Homework4 (mergesort-concurrent)
contributed by < `laochanlam` >
###### tags: `laochanlam`
## 開發環境
- Ubuntu 16.10 ( 64 bit )
```
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 61
Model name: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
Stepping: 4
CPU MHz: 2400.878
CPU max MHz: 3000.0000
CPU min MHz: 500.0000
BogoMIPS: 4788.90
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 4096K
NUMA node0 CPU(s): 0-3
```
## 相關連結
- [2017 年春季作業說明](https://hackmd.io/s/Bk-1zqIte#)
- [2017q1 Homework4 (作業區)](https://hackmd.io/KwUwhgxgnALADAdgLQDYBMKBGSZgMxxJQjBRIAcKAJigGYxRphhVxA==?view)
- [B08: mergesort-concurrent 作業要求](https://hackmd.io/s/B1xV_p_jl#)
- [課程進度與開放資源 Wiki](http://wiki.csie.ncku.edu.tw/sysprog/schedule)
## 開發紀錄
先把專案 Clone 下來, make 然後執行
```shell=bash
$ (for i in {1..8}; do echo $RANDOM; done) | mutrace ./sort 4 8
```
但是不知道為什麼一直出現 Segmentation fault, 後來看了一下用法
```shell=bash
usage: ./sort [thread_count] [input_file]
```
然後嘗試把 test_data 的 words.txt 丟進去, 得到了很多 0...
該來讀一下程式碼了。
## 補充知識
- [ ]
---
##
#### 參考及引用資料