4 ms·
On the contrary, every thread has its own stack. In fact the stack was the original "thread local storage".
by mpyne 13y ago
On the contrary, every thread has its own stack. In fact the stack was the original "thread local storage".
- jamesaguilar 13y agoYes, my point is that if you try to operate on memory from another thread's stack, it is equally unsafe as operating on memory from the heap you received from another thread. The allocation method is irrelevant to whether it is safe. What is important is whether it is being accessed concurrently.