User Tools

Site Tools


realtime:documentation:howto:applications:memory

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
realtime:documentation:howto:applications:memory [2017/07/15 01:56]
jithu [Memory Locking]
realtime:documentation:howto:applications:memory [2017/07/15 02:18]
jithu [Dynamic memory allocation in RT threads]
Line 58: Line 58:
 =====  Dynamic memory allocation in RT threads===== =====  Dynamic memory allocation in RT threads=====
  
-Real-time threads should avoid doing dynamic memory allocation / free while in RT critical path. The suggested recommendation for real-time threads is to do the allocations ​before ​entering RT critical path. It is okay for the RT thread in RT critical path to access a dynamically ​allocated memory, provided that it is locked as described [[memory#​Memory Locking|here]] .+Real-time threads should avoid doing dynamic memory allocation / freeing ​while in RT critical path. The suggested recommendation for real-time threadsis to do the allocations, prior-to ​entering RT critical path. Subsequently ​RT threads, within their RT-critical path, can use this pre-allocated ​dynamic ​memory, provided that it is locked as described [[memory#​Memory Locking|here]].
  
-Non RT-threads within the applications have no restrictions on dynamic allocation / free . +Non RT-threads within the applications have no restrictions on dynamic allocation / free. 
  
realtime/documentation/howto/applications/memory.txt ยท Last modified: 2017/07/15 02:25 by jithu