Concurrent Programming
QuoteMulti-tasking arises out of distraction itself.
by Marilyn vos Savant
12.1 - 12.15 visit book
12.16 - 12.39 visit here
test
prerequisite
- need wrk to benchmark server in 35, 36, 37, 38
- need package
apache2-utils
(required by command lineab
) to benchmark
proxy server
code directory: ./code
test way:
- output means to watch code output to judge if it works right
- benchmark means using wrk/ab to make lots of connections at same time to test
server
solution | code file | test way |
---|---|---|
12.16 | 12.16.c | output |
12.17 | 12.17.c | output |
12.18 | —— | —— |
12.19 | 12.19.c | output |
12.20 | 12.20.c | output |
12.21 | 12.21.c | output |
12.22 | 12.22.c | using telnet, more visit 12.22.md |
12.23 | 12.23.c | visit 12.23.md |
12.24 | —— | —— |
12.25 | —— | —— |
12.26 | 12.26.c | output |
12.27 | —— | —— |
12.28 | —— | —— |
12.29 | —— | —— |
12.30 | —— | —— |
12.31 | 12.31.c | run and input or BOOM after 5 seconds |
12.32 | 12.32.c | run and input or BOOM after 5 seconds |
12.33 | 12.33.c | run and input or BOOM after 5 seconds |
12.34 | 12.34.c | visit 12.34.md, how to measure performance |
12.35 | 12.35.c | benchmark |
12.36 | 12.36/* | benchmark |
12.37 | 12.37.c | benchmark |
12.38 | 12.38/* | benchmark |
12.39 | 12.39/* | benchmark, more see 12.39.md |
当前内容版权归 DreamAndDead 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 DreamAndDead .