Yes,I mean POSIX.<br><br>thanks<br><br><div class="gmail_quote">On Wed, Jul 18, 2012 at 7:31 PM, Pierre Ficheux <span dir="ltr"><<a href="mailto:pierre.ficheux@openwide.fr" target="_blank">pierre.ficheux@openwide.fr</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">Le 18/07/2012 16:20, m.shahverdi a écrit :<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<div><div class="h5"><br>
I have an application with two threads but I don't know how to protect<br>
memory of each thread against other thread.please help me.<br>
<br>
thanks<br>
<br>
<br></div></div><div class="im">
______________________________<u></u>_________________<br>
rtems-users mailing list<br>
<a href="mailto:rtems-users@rtems.org" target="_blank">rtems-users@rtems.org</a><br>
<a href="http://www.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://www.rtems.org/mailman/<u></u>listinfo/rtems-users</a><br>
</div></blockquote>
<br>
I talked about POSIX because of pthread_setspecific()/pthread_<u></u>getspecific() :<br>
<br>
"Thread-specific data allows a thread to maintain its own global storage that is hidden from the other threads."<br>
<br>
<br>
<a href="http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Frzahw%2Frzahwex1.htm" target="_blank">http://publib.boulder.ibm.com/<u></u>infocenter/iseries/v7r1m0/<u></u>index.jsp?topic=%2Frzahw%<u></u>2Frzahwex1.htm</a><br>

<a href="http://pubs.opengroup.org/onlinepubs/009696799/functions/pthread_setspecific.html" target="_blank">http://pubs.opengroup.org/<u></u>onlinepubs/009696799/<u></u>functions/pthread_setspecific.<u></u>html</a><br>
<br>
<br>
regards<div class="im HOEnZb"><br>
<br>
-- <br>
Pierre FICHEUX  -/- CTO OWI, France -\- <a href="mailto:pierre.ficheux@openwide.fr" target="_blank">pierre.ficheux@openwide.fr</a><br>
                                         <a href="http://ingenierie.openwide.fr" target="_blank">http://ingenierie.openwide.fr</a><br>
                                         <a href="http://www.ficheux.org" target="_blank">http://www.ficheux.org</a><br>
I would love to change the world, but they won't give me the source code<br>
<br>
<br></div><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
rtems-users mailing list<br>
<a href="mailto:rtems-users@rtems.org" target="_blank">rtems-users@rtems.org</a><br>
<a href="http://www.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://www.rtems.org/mailman/<u></u>listinfo/rtems-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><p align="right"><font size="3"><span lang="FA">به "هوالحی" زنده می کند؛</span></font></p><p style="margin:0in 0in 10pt;text-align:right;direction:rtl" dir="RTL">
<span lang="FA"><font size="3">آنسان که می میراند به "هوالممیت"..</font></span></p><p style="margin:0in 0in 10pt;text-align:right;direction:rtl" dir="RTL"><span lang="FA"><font size="3">ما را به "هوالشهید" است که مدام می
میراند و زنده می کند..</font></span></p><p align="right"><font face="Times New Roman" size="3">

</font></p><br>