2天前 · software Spinlocks vs. Mutexes:何时自旋,何时休眠 介绍 你正盯着 perf top,显示在 pthread_mutex_lock 中占用了 60% 的 CPU 时间。 你的延迟非常糟糕。 有人建议“直接使用 spinlock”,于是…