Is there a semantic difference between the terms call stack
and thread stack
, in Java multithreading?
A call stack
is a stack data structure
that stores information about the active subroutines of a computer program.
What you're calling a thread stack
is what i assume is the private stack of a thread.
These two things are essentially the same. They are both stack data structures
.
A thread's stack is used to store the location of function calls in order to allow return statements to return to the correct location
Since there usually is only one important call stack, it is what people refer to as the stack.
Here is information about the stack.
Here is information about Stack-based memory allocation.