阅读背景:

为什么pthread互斥对象被认为比互斥对象“慢”?

来源:互联网 

Why are POSIX mutexes considered heavier or slower than futexes? Where is the overhead coming from in the pthread mutex type? I've heard that pthread mutexes are based on futexes, and when uncontested, do not make any calls into the kernel. It seems then that a pthread mutex is merely a "wrapper" around a futex.Why are POSIX mutexes considered heavier or slo




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: