English 中文(简体)
我太快要 j笑吗?
原标题:Am I too fast to count jiffies?

我对不同的数据库系统进行了一些当地试验。 在我执行询问之前和之后,我从<代码>/proc/status收集(摘要)。 差异应当告诉我, j或 US。 HZ 工作时间。 但是,如果(根据<代码>clock_gettime(>)查询的操作时间低于0.001秒,则差异为零。 这是否是为了迅速利用万国邮联的信息,还是我没有其他东西?

最佳回答

A jiffy, as of-030 kernel 2.6.0, is 1/250 of a second, or 0.004 seconds [see ,time(7)]。 你们永远不会得到比这小的解决。

我建议你使用<代码>rdtsc指示,该指示可能作为汇编者本身提供。 这在每1个万国邮联的标尺上都得到了加强,这样,你就可以获得所通过时间的频率。 http://www.mcs.anl.gov/~kazutomo/rdtsc.html” rel=“nofollow”随附在网上

事实上,要检查<条码>/proc/status的细微缩略词,因为开立案卷和阅读内容的良机实际上要长于您的询问。 <代码>rdtsc更为可靠。

问题回答

暂无回答




相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签