CS162-Reading-Summary

Preface

最近在看UC Berkley的CS162课程(Operating Systems and Systems Programming),本文档并非传统读书笔记,仅仅记录个人感兴趣的方向。
课程资源: https://inst.eecs.berkeley.edu/~cs162/sp22/
Blibili: https://www.bilibili.com/video/BV1ab4y1b7BU/?spm_id_from=333.999.0.0&vd_source=ad1de925221aeeaaca365d6a27465fe9 (机翻字幕,存在错误)

Threadpool

What is Thread Pool?
https://www.scaler.com/topics/operating-system/thread-pool/

C++ threadpool project(使用C++11的线程特性实现的线程池,100行不到)
https://github.com/progschj/ThreadPool

git clone https://github.com/progschj/ThreadPool.git
g++ example.cpp -o example -lpthread
pi@raspberrypi:~/Codes/ThreadPool $ ./example 
hello hello 01

hello 2
hello 3
world 1
world 0
world 2
hello 4
0 hello 15 
4 hello 6
world 3
9 hello 7
world 4
world 5
16 25 world 6
36 world 7
49 

Mesa VS Hoare semantics

Details: https://samuelsorial.tech/mesa-vs-hoare-semantics

Whtat’s RPC

谁能用通俗的语言解释一下什么是 RPC 框架? - 用心阁的回答 - 知乎
https://www.zhihu.com/question/25536695/answer/36197244

Wthat is CPU Burst?

https://cpulifes.com/what-is-cpu-burst/#:~:text=CPU%20burst%20is%20a%20term%20used%20to%20describe,of%20processes%20is%20known%20as%20the%20%E2%80%9Cburst%E2%80%9D%20time.