Memory management between threads in RTEMS

Till Straumann strauman at slac.stanford.edu
Wed Jul 18 15:41:14 UTC 2012


Maybe you could share some example code so that we understand
what exactly you're trying to do?

T.

On 07/18/2012 10:37 AM, m.shahverdi wrote:
> 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.
>
> On Wed, Jul 18, 2012 at 7:42 PM, Thomas Doerfler 
> <Thomas.Doerfler at embedded-brains.de 
> <mailto:Thomas.Doerfler at embedded-brains.de>> wrote:
>
>     Hi,
>
>     funny topic: one question, many different answers, none of them is
>     wrong ;-)
>
>     Maybe you can specify, what you expect from a "memory protection"
>     mechanism:
>     - A way to synchronize two threads, so only one is allowed to
>     access/write to a memory area?
>     - A way to detect, when a thread inadvertedly tries to access/write to
>     another thread's private area?
>     - Something different?
>
>     wkr,
>
>     Thomas.
>
>     Am 18.07.2012 16:20, schrieb m.shahverdi:
>     > Hi, I have an application with two threads but I don't know how to
>     > protect memory of each thread against other thread.please help me.
>     >
>     > thanks
>     >
>     >
>     >
>     > _______________________________________________ rtems-users mailing
>     > list rtems-users at rtems.org <mailto:rtems-users at rtems.org>
>     > http://www.rtems.org/mailman/listinfo/rtems-users
>     >
>
>
>     --
>     IMD Ingenieurbuero fuer Microcomputertechnik
>     Thomas Doerfler           Herbststrasse 8
>     D-82178 Puchheim          Germany
>     email: Thomas.Doerfler at imd-systems.de
>     <mailto:Thomas.Doerfler at imd-systems.de>
>     PGP public key available on request
>
>
>     --
>     --------------------------------------------
>     embedded brains GmbH
>     Thomas Doerfler
>     Obere Lagerstrasse 30
>     D-82178 Puchheim
>     Germany
>     email: Thomas.Doerfler at embedded-brains.de
>     <mailto:Thomas.Doerfler at embedded-brains.de>
>     Phone: +49-89-18908079-2
>     Fax: +49-89-18908079-9
>     PGP: Public key available on request.
>
>     Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>
>     _______________________________________________
>     rtems-users mailing list
>     rtems-users at rtems.org <mailto:rtems-users at rtems.org>
>     http://www.rtems.org/mailman/listinfo/rtems-users
>
>
>
>
> -- 
>
> به "هوالحی" زنده می کند؛
>
> آنسان که می میراند به "هوالممیت"..
>
> ما را به "هوالشهید" است که مدام می میراند و زنده می کند..
>
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20120718/7d8d60d0/attachment-0001.html>


More information about the users mailing list