r/programming • • Aug 05 '26

Linux Processes: Threads & Concurrency

https://labs.iximiuz.com/tutorials/linux-processes-threads-concurrency-3302b677
93 Upvotes

12 comments sorted by

View all comments

Show parent comment

3

u/dijkstra_was_a_horse Aug 07 '26

The same way that 2 mallocs are separated from each other. In fact, you can allocate thread stacks with malloc.