阅读背景:

为什么C ++和strace不同意open()系统调用的持续时间?

来源:互联网 

I have a program which opens a large number of files. I am timing the execution of a C++ loop which literally just opens and closes the files using both a C++ timer and strace. Strangely the system time and the time logged by C++ (which agree with each other) are orders of magnitude larger than the time the time strace claims was spent in system calls. How can this be? I have put the source and output below.I have a program which opens a large number of




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

分享到: