Home > Articles > Software Development & Management

Real-Time Design Patterns: Memory Patterns

  • Print
  • + Share This
Much of the difficulty in building complex real-time and embedded system centers around managing shared resources in ways that are simultaneously efficient and robust. The patterns in this chapter focus on efficient management of memory as a resource and the robust sharing of general software resources (modeled as objects) to ensure schedulability of the overall system.
This chapter is from the book

The following patterns are presented in this chapter.

  • Static Allocation Pattern: Allocates memory up front

  • Pool Allocation Pattern: Preallocates pools of needed objects

  • Fixed Sized Buffer Pattern: Allocates memory in same-sized blocks

  • Smart Pointer Pattern: Makes pointers reliable

  • Garbage Collection Pattern: Automatically reclaims lost memory

  • Garbage Compactor Pattern: Automatically defragments and reclaims memory

6.1 Memory Management Patterns

Much of the difficulty in building complex real-time and embedded system centers around managing shared resources in ways that are simultaneously efficient and robust. The patterns in this chapter focus on efficient management of memory as a resource and the robust sharing of general software resources (modeled as objects) to ensure schedulability of the overall system.

  • + Share This
  • 🔖 Save To Your Account