Memory management between threads in RTEMS
Till Straumann
strauman at slac.stanford.edu
Wed Jul 18 14:45:57 UTC 2012
The memory allocator is indeed protected by the system,
i.e., two threads may each call 'malloc()' without having
to worry that the heap gets messed up.
If you talk about protecting some allocated memory from
concurrent access by multiple threads then you do that
in the usual way, e.g., by using a mutex.
- Till
On 07/18/2012 09:27 AM, Thomas Doerfler wrote:
> Hi,
>
> up to now, there is no general concept to do this in RTEMS. Some ideas
> are discussed to cover part of these requirements...
>
> Part of the problem is that memory like static variables, heap, OS
> workspace in general is managed gobally.
> 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
>> http://www.rtems.org/mailman/listinfo/rtems-users
>>
>
>
More information about the users
mailing list