<br>Hello,<br><br>I suppose Ricardo is looking for a non-preemptive execution of his &quot;block of code&quot; in order to estimate execution times. Something like using a FIFO scheduling with the highest priority.<br><br>
Ricardo ?<br><br>Thanks,<br>Sandro Andrade<br><br><div class="gmail_quote">On Dec 2, 2007 11:47 PM, Douglas C. Schmidt &lt;<a href="mailto:schmidt@dre.vanderbilt.edu">schmidt@dre.vanderbilt.edu</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Ricardo,<br><br> &nbsp; Thanks for using the PRF.<br><div><div></div><div class="Wj3C7c"><br>&gt; CIAO version 0.6.10<br>&gt; TAO version 1.6.10<br>&gt; ACE VERSION: 5.6.1<br>&gt;<br>&gt; HOST MACHINE and OPERATING SYSTEM:<br>
&gt; &nbsp; &nbsp; &nbsp; Centrino Duo Core, Ubuntu 7.0.4-Feisty, kernel 2.6.20-16-generic<br>&gt;<br>&gt; COMPILER NAME AND VERSION (AND PATCHLEVEL):<br>&gt; &nbsp; &nbsp; &nbsp; gcc (GCC) 4.1.2<br>&gt;<br>&gt; THE $ACE_ROOT/ace/config.h FILE:<br>&gt; &nbsp; &nbsp; &nbsp; #include &quot;ace/config-
linux.h&quot;<br>&gt;<br>&gt; THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE:<br>&gt; &nbsp; &nbsp; &nbsp; no_hidden_visibility=1<br>&gt; &nbsp; &nbsp; &nbsp; include<br>&gt; &nbsp;/usr/local/ACE_wrappers/include/makeinclude/platform_linux.GNU<br>
&gt;<br>&gt; CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features:<br>&gt; &nbsp; &nbsp; [there is no default.features file, but the gnuace and global<br>&gt; &nbsp;features]<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; qt=1<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; fl=1<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; tk=1<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; xt=1<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; cidl=1<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; sctp=1<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; zlib=1<br>&gt;<br>&gt; DOES THE PROBLEM AFFECT:<br>&gt; &nbsp; &nbsp; &nbsp;COMPILATION? no<br>&gt;<br>&gt; SYNOPSIS:<br>&gt;<br>&gt;<br>
&gt; DESCRIPTION:<br>&gt;<br>&gt;In ACE_High_Res_Timer class i don&#39;t see anything that prevents an external interference between start and stop methods. I &nbsp;need to measure a block of code like an atomic operation.<br>
<br></div></div>What do you mean by &quot;atomic operation&quot;?<br><div class="Ih2E3d"><br>&gt; How can i do this? The sample code below depicts a measurement process:<br>&gt;<br>&gt;ACE_High_Res_Timer::start ();<br>&gt;block of code;
<br>&gt;ACE_High_Res_Timer::stop ();<br>&gt;<br>&gt;is The ACE_Sig_Guard class &nbsp;capable to guarantee this level of isolation or is there another better solution?<br><br></div>It&#39;s not really clear what you are trying to be atomic wrt, 
e.g.,<br>signals, thread context switches, etc., so can you please clarify this<br>first?<br><br>Thanks,<br><br> &nbsp; &nbsp; &nbsp; &nbsp;Doug<br><font color="#888888">--<br>Dr. Douglas C. Schmidt &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Professor and Associate Chair
<br>Electrical Engineering and Computer Science &nbsp;TEL: (615) 343-8197<br>Vanderbilt University &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WEB: <a href="http://www.dre.vanderbilt.edu/%7Eschmidt" target="_blank">www.dre.vanderbilt.edu/~schmidt</a>
<br>Nashville, TN 37203 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NET: <a href="mailto:d.schmidt@vanderbilt.edu">d.schmidt@vanderbilt.edu</a><br></font><div><div></div><div class="Wj3C7c"><br>_______________________________________________
<br>ace-users mailing list<br><a href="mailto:ace-users@mail.cse.wustl.edu">ace-users@mail.cse.wustl.edu</a><br><a href="http://mail.cse.wustl.edu/mailman/listinfo/ace-users" target="_blank">http://mail.cse.wustl.edu/mailman/listinfo/ace-users
</a><br></div></div></blockquote></div><br><br clear="all"><br>-- <br><br>Sandro Santos Andrade<br>--------------------------------------------------------<br>Distributed Systems Laboratory (LaSiD)<br>Computer Science Department (DCC)
<br>Federal University of Bahia<br>Brazil