Memory Management

From Suhrid.net Wiki
Revision as of 16:58, 1 December 2011 by Suhridk (talk | contribs)
Jump to navigationJump to search

Intro

  • Running garbage collection can have an impact on the response time of a time critical thread.
  • It is necessary to have memory that is not subject to GC.
  • Provides two alternatives to traditional Java heap memory:
    • Immortal Memory
    • Scoped Memory
  • Both types of area are represented by the abstract javax.realtime.MemoryArea class.
  • Only javax.realtime.Schedulable objects are allowed to enter into a MemoryArea. If standard Java threads attempt to get in then an IllegalThreadStateException is thrown.