heaps

Java very large heap sizes

Does anyone have experience with using very large heaps 12 gb or higher in Java? Does the GC make the program ununable? What GC params do you use? Which jvm sun or bea would be better suited for this? Which platform linux or windows performs better under such conditions? In the case of windows is there any performance difference to be ...

If I allocate memory in one thread in C++ can I de-allocate it in another

If I allocate memory in one thread in C++ (either new or malloc) can I de-allocate it in another, or must both occur in the same thread? Ideally, I'd like to avoid this in the first place, but I'm curious to know is it legal, illegal or implementation dependent. Edit: The compilers I'm currently using include VS2003, VS2008 and Embedd...

Why does Java uses heap for memory allocation?

I just read this statement in a java book saying Objects in java reside on a heap. Is a heap used because it is the best way to store data and retrieve data fast ? I only have an idea about data structures being a beginner. I mean why not stack or something else ? ...