Tuesday, 14 February 2012

Is there a separate stack for each thread in Java? | Java Threads


Yes. Every thread maintains its own separate stack, called Runtime Stack but they share the same memory. Elements of the stack are the method invocations, called activation records or stack frame. The activation record contains pertinent information about a method like local variables.

No comments: