這樣付出的代價是,mutex 成為Linux 核心最複雜的lock,在x86-64 的環境下需要使用40 bytes,相較之下,semaphore 只用24 bytes,這意味著對CPU cache 的效率和cache ...
確定! 回上一頁