Redian新闻
>
new thread object 占的是heap还是stack?
avatar
l*2
2
好像thread用不同的stack区分,那new thread()是占heap还是stack呢?
avatar
w*r
3
java object instances are in heap

【在 l****2 的大作中提到】
: 好像thread用不同的stack区分,那new thread()是占heap还是stack呢?
avatar
l*2
4
thread 怎么用stack?

【在 w*r 的大作中提到】
: java object instances are in heap
avatar
h*o
5
the thread's run method may need some local variables. Also java thread
finally will map to OS thread. each thread will have its own stack even you
have no local variables in run method. in this way, context switch is
possible.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。