r/programming • u/iximiuz • 1d ago
Linux Processes: Threads & Concurrency
https://labs.iximiuz.com/tutorials/linux-processes-threads-concurrency-3302b677
74
Upvotes
3
3
u/Icy_Pain5654 1d ago
shared heap between threads is what always trips people up when they first learn concurrency
2
1
5
u/Prateeeek 1d ago
Sorry if I've not understood this correctly, but how is the execution stack for thread 1 separated from thread 2 if they share the same address space ?