c**z 发帖数: 669 | 1 多线程题目请教
1. threads of a process share the same memory address, when one makes a
change to the process, the change is visible to other threads. Can you give
an example?
2. Visual studio里面的 call stack, 是存储的什么?
3。new int* p 在heap上的内存,
int b 是在 stack上的内存,
这个对于process来说是一样的还是不一样的? | m*********0 发帖数: 46 | 2 2. Call stack上存的是当前正被调度运行的线程调用栈
3. heap是process wide。stack是thread wide, 函数调用结束后会frame会被unwind
give
【在 c**z 的大作中提到】 : 多线程题目请教 : 1. threads of a process share the same memory address, when one makes a : change to the process, the change is visible to other threads. Can you give : an example? : 2. Visual studio里面的 call stack, 是存储的什么? : 3。new int* p 在heap上的内存, : int b 是在 stack上的内存, : 这个对于process来说是一样的还是不一样的?
|
|