This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
realtime:documentation:howto:applications:memory [2017/07/15 02:04] jithu [Dynamic memory allocation in RT threads] |
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 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]]. | + | Real-time threads should avoid doing dynamic memory allocation / freeing while in RT critical path. The suggested recommendation for real-time threads, is 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. | ||