Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

immortal memory

 
medhaj hambi
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what happens when a particular thread wants to access an immortal memory area?
 
medhaj hambi
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it would be better if demostrated with a sample programme....kindly make it as fast as you cannn..!!!
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you elaborate what are you referring to as immortal memory.
Memory allocation in java is left to the JVM and no program can pick and choose which memory area to use.

medhaj:kindly make it as fast as you cannn

PatienceIsAVirtue
 
Henry Wong
author
Marshal
Pie
Posts: 21212
81
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"immortal memory" is defined by the Java real-time specification for objects that are "immortal" -- i.e. they are never garbage collected. IMHO, I don't see why special reference handling is needed for this. And I am assuming, during a GC cycle, references to immortal objects, just get ignored.

Regardless, I don't use a real-time JVM, so this is speculation. Hopefully, someone who has, can shed some light on this.

Henry
 
medhaj hambi
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the prompt reply...theoretically i knew that...but i need to se that in a programme....ny ways...i apreciate that....
If we write a wait() method inside the synchronised block...will the execution of the current thread be stopped and will that be moved to the next waiting thread?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic