<br>Hello,<br><br>I suppose Ricardo is looking for a non-preemptive execution of his "block of code" 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 <<a href="mailto:schmidt@dre.vanderbilt.edu">schmidt@dre.vanderbilt.edu</a>> 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> Thanks for using the PRF.<br><div><div></div><div class="Wj3C7c"><br>> CIAO version 0.6.10<br>> TAO version 1.6.10<br>> ACE VERSION: 5.6.1<br>><br>> HOST MACHINE and OPERATING SYSTEM:<br>
> Centrino Duo Core, Ubuntu 7.0.4-Feisty, kernel 2.6.20-16-generic<br>><br>> COMPILER NAME AND VERSION (AND PATCHLEVEL):<br>> gcc (GCC) 4.1.2<br>><br>> THE $ACE_ROOT/ace/config.h FILE:<br>> #include "ace/config-
linux.h"<br>><br>> THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE:<br>> no_hidden_visibility=1<br>> include<br>> /usr/local/ACE_wrappers/include/makeinclude/platform_linux.GNU<br>
><br>> CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features:<br>> [there is no default.features file, but the gnuace and global<br>> features]<br>> qt=1<br>> fl=1<br>
> tk=1<br>> xt=1<br>> cidl=1<br>> sctp=1<br>> zlib=1<br>><br>> DOES THE PROBLEM AFFECT:<br>> COMPILATION? no<br>><br>> SYNOPSIS:<br>><br>><br>
> DESCRIPTION:<br>><br>>In ACE_High_Res_Timer class i don't see anything that prevents an external interference between start and stop methods. I need to measure a block of code like an atomic operation.<br>
<br></div></div>What do you mean by "atomic operation"?<br><div class="Ih2E3d"><br>> How can i do this? The sample code below depicts a measurement process:<br>><br>>ACE_High_Res_Timer::start ();<br>>block of code;
<br>>ACE_High_Res_Timer::stop ();<br>><br>>is The ACE_Sig_Guard class capable to guarantee this level of isolation or is there another better solution?<br><br></div>It'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> Doug<br><font color="#888888">--<br>Dr. Douglas C. Schmidt Professor and Associate Chair
<br>Electrical Engineering and Computer Science TEL: (615) 343-8197<br>Vanderbilt University WEB: <a href="http://www.dre.vanderbilt.edu/%7Eschmidt" target="_blank">www.dre.vanderbilt.edu/~schmidt</a>
<br>Nashville, TN 37203 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