This question does not account for Java21 virtual threads.
Yo guys, are the following assumptions true? >>
- When Java thread is created (NEW), looks like space is allotted on heap, but no stack space is allotted.
- When Java thread is started, by default 1MB space is allotted for stack. Btw someone said there is some kind of optimization in Java11.
- When Java thread is started, a native thread is also created using pThread API, and managed by kernel.
- Native thread and Java thread share the 1MB stack, and native thread has no dedicated stack of its own.