<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Maybe you could share some example code
      so that we understand<br>
      what exactly you're trying to do?<br>
      <br>
      T.<br>
      <br>
      On 07/18/2012 10:37 AM, m.shahverdi wrote:<br>
    </div>
    <blockquote
cite="mid:CAJDSd-s8rVYnUpXEHhbXvfojeY5RugeJOf4mkEFcucZ7Ys3XqA@mail.gmail.com"
      type="cite">These two threads have some common fields that I use
      mutex on these fields but in general I read in c_user document of
      RTEMS that this OS has a flat memory and I'm worry about unsafe
      access to memory that each thread allocate in the beginning of
      execution.<br>
      <br>
      <div class="gmail_quote">On Wed, Jul 18, 2012 at 7:42 PM, Thomas
        Doerfler <span dir="ltr"><<a moz-do-not-send="true"
            href="mailto:Thomas.Doerfler@embedded-brains.de"
            target="_blank">Thomas.Doerfler@embedded-brains.de</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
          <br>
          funny topic: one question, many different answers, none of
          them is<br>
          wrong ;-)<br>
          <br>
          Maybe you can specify, what you expect from a "memory
          protection"<br>
          mechanism:<br>
          - A way to synchronize two threads, so only one is allowed to<br>
          access/write to a memory area?<br>
          - A way to detect, when a thread inadvertedly tries to
          access/write to<br>
          another thread's private area?<br>
          - Something different?<br>
          <div class="im"><br>
            wkr,<br>
            <br>
            Thomas.<br>
            <br>
            Am 18.07.2012 16:20, schrieb m.shahverdi:<br>
          </div>
          <div class="im">> Hi, I have an application with two
            threads but I don't know how to<br>
            > protect memory of each thread against other
            thread.please help me.<br>
            ><br>
            > thanks<br>
            ><br>
            ><br>
            ><br>
          </div>
          <div class="im">>
            _______________________________________________ rtems-users
            mailing<br>
            > list <a moz-do-not-send="true"
              href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>
            > <a moz-do-not-send="true"
              href="http://www.rtems.org/mailman/listinfo/rtems-users"
              target="_blank">http://www.rtems.org/mailman/listinfo/rtems-users</a><br>
            ><br>
            <br>
            <br>
            --<br>
          </div>
          IMD Ingenieurbuero fuer Microcomputertechnik<br>
          Thomas Doerfler           Herbststrasse 8<br>
          D-82178 Puchheim          Germany<br>
          email:    <a moz-do-not-send="true"
            href="mailto:Thomas.Doerfler@imd-systems.de">Thomas.Doerfler@imd-systems.de</a><br>
          PGP public key available on request<br>
          <div class="im HOEnZb"><br>
            <br>
            --<br>
            --------------------------------------------<br>
            embedded brains GmbH<br>
            Thomas Doerfler<br>
            Obere Lagerstrasse 30<br>
            D-82178 Puchheim<br>
            Germany<br>
            email: <a moz-do-not-send="true"
              href="mailto:Thomas.Doerfler@embedded-brains.de">Thomas.Doerfler@embedded-brains.de</a><br>
            Phone: +49-89-18908079-2<br>
            Fax: +49-89-18908079-9<br>
            PGP: Public key available on request.<br>
            <br>
            Diese Nachricht ist keine geschäftliche Mitteilung im Sinne
            des EHUG.<br>
            <br>
          </div>
          <div class="HOEnZb">
            <div class="h5">_______________________________________________<br>
              rtems-users mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>
              <a moz-do-not-send="true"
                href="http://www.rtems.org/mailman/listinfo/rtems-users"
                target="_blank">http://www.rtems.org/mailman/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>
    </blockquote>
    <br>
    <br>
  </body>
</html>