操作系统课上学了点多线程, 知道了最基本的 spinlock, mutex, semaphore, condition variable 等等. 挺有意思的, 故作为一个记录.
spinlock
mutex
semaphore
condition variable