Sure, the code is attached.<div><div><div><br><br><div class="gmail_quote">On Fri, Feb 25, 2011 at 5:15 PM, Daniel Baluta <span dir="ltr"><<a href="mailto:daniel.baluta@gmail.com">daniel.baluta@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Fri, Feb 25, 2011 at 8:22 PM, Mauro Romano Trajber <<a href="mailto:trajber@gmail.com">trajber@gmail.com</a>> wrote:<br>
> Thanks Enrico and Daniel, you're right. glibc was caching getpid(); but this<br>
> is not the root cause of this behavior.<br>
> Going further, I decide to use call getpid without glibc, using<br>
> syscall(SYS_getpid) to test this behavior and it happened again.<br>
> Calling it once, the test consumes about 7k CPU cycles and 10 calls consumes<br>
> about 10k CPU cycles.<br>
> Any ideas ?<br>
<br>
</div>Can you post a pointer to your code and information about how you got<br>
this numbers?<br>
<br>
thanks,<br>
<font color="#888888">Daniel.<br>
</font></blockquote></div><br></div></div></div>