简体   繁体   English

线程堆栈或线程调用堆栈

[英]Thread stack or Thread call stack

What I have read from MSDN , 我从MSDN读到的内容

Each new thread or fiber receives its own stack space consisting of both reserved and initially committed memory. 每个新线程或光纤都会接收其自己的堆栈空间,该堆栈空间既包括保留内存,也包括最初提交的内存。

Does the word 'stack' here really mean a 'call stack' or does it mean that it gets piece of memory that is called a stack? 这里的“堆栈”一词真的意味着“调用堆栈”,还是意味着它获得了一块称为堆栈的内存?

That is referring to the call stack - each thread/fiber needs its own to function. 这是指调用堆栈-每个线程/光纤都需要自己的功能。 Is there a reason that you think it wouldn't be the call stack? 您是否有理由认为它不会成为调用堆栈?

The call stack lives on the stack. 调用堆栈位于堆栈上。 Each thread or fiber has its own private stack and that's what the topic you link to is discussing. 每个线程或光纤都有其自己的私有堆栈,这就是您链接到的话题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM