linux2020
web server
uring.txt
與 epoll.txt
$ gnuplot plot.gp
$ eog performance.png
plot.gp
set term png font "Verdana, 12"
set title "Time consumpsion of do\\_request func.'
set xlabel "experiment"
set ylabel "time (sec)"
set output "performance.png"
set xtic 10
set ytic 0.01
plot [:][:0.25] "uring.txt" using 1:2 with points title 'io\_uring', \
"epoll.txt" using 1:2 with points title 'epoll'
1 0.232697
2 0.021458
3 0.021219
4 0.020742
5 0.020981
6 0.028133
7 0.027657
8 0.029802
9 0.020742
10 0.021458
11 0.028849
12 0.021219
13 0.028133
14 0.021219
15 0.020981
16 0.028610
17 0.020266
18 0.020504
19 0.019550
20 0.019312
21 0.021458
22 0.021935
23 0.021696
24 0.027657
25 0.027180
26 0.020981
27 0.021458
28 0.020981
29 0.022411
30 0.028372
31 0.028133
32 0.027895
33 0.021219
34 0.022888
35 0.027895
36 0.019789
37 0.022411
1 0.035048
2 0.033617
3 0.036001
4 0.034571
5 0.032425
6 0.033379
9 0.033617
10 0.034094
11 0.034571
12 0.027657
13 0.033379
14 0.037432
15 0.032663
16 0.034094
17 0.027895
18 0.034809
19 0.027180
20 0.035048
21 0.031471
22 0.034332
1. 什麼是區塊鏈,對我們有什麼好處 區塊鏈是分散式帳本 (Distributed Ledger Technology) 的一種應用,透過分散式的節點替人們保存有用的資訊,而不依靠中央存儲節點。因此區塊鏈也可視為一種資料庫,並以密碼學、共識演算法等技術保障其安全、同步。 區塊鏈的起源 (Bitcoin) 中本聰在 2008 年發表《Bitcoin: A Peer-to-Peer Electronic Cash System》,提到了如 P2P 網路、transaction、timestamp server、密碼學等區塊鏈的核心技術。並於 2009 年一月三號產生第一個區塊,稱為創世區塊 (Genesis block);一月九號產生第二個區塊,兩者相連誕生區塊鏈。 應用領域 舉凡會產生資料、保存資料、交換資料等需求的應用,都可以加入區塊鏈。 e.g., 數位貨幣、車載網路、工業控制網路等等
Aug 11, 2021(上) 前情提要 我發現我的程式會崩潰,甚至連第一個 entry 都加不進去,以下是我將 pointer to pointer 改寫為指標的程式片段 : void add_entry(node_t *h, int new_value) { /*create new_node*/ //printf(Address of h = %p, &h) if(h == NULL) h = new_node; else {
Apr 19, 2021contributed by < Shanola > 第一周題目 GitHub程式碼 測驗 1 程式碼 考慮單向 linked list 結構,已知無 circular,嘗試以遞增順序進行 Quick sort,以下為有進行新增或修改的程式碼片段 static inline void list_concat(node_t **left, node_t *right) {
Mar 25, 2021contributed by < Shanola > 測驗 1 POSIX Thread (pthread) API 認識 透過 pthread 可以實現並行化的程式,對於多核或多處理器的系統中可以平行化或分散式執行,進而提高程式效能。相較於透過 forking 來產生的行程不必再配置記憶空間而是共享一個行程的資源。 Thread(執行緒) 的操作有 建立 終止 同步 排程 資料管理 行程互動: pthread_create() 建立新的執行緒,成功時回傳 0,反之回傳錯誤值。
Mar 21, 2021or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up