阅读背景:

如何在Linux上检查给定的操作(或系统调用)是否是原子的?

来源:互联网 

I want to find a reliable way (other than reading the kernel source code) to check if a given operation (or system call) is atomic (in the sense that other process can only see the state before or after that operation, but not something in between) on Linux. The goal of this is to avoid using unnecessary locks for some operations if the kernel already does that for me.I want to find a reliable way (other than readi




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

分享到: