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

4

u/creeper6530 Aug 06 '26

So one could theoretically pass pointers to stack between threads, provided they manage lifetimes well?

4

u/dfx_dj Aug 06 '26

Yes exactly

3

u/No-Consequence-1863 Aug 06 '26

Yea, some concurrency systems like in Go do exactly that to make sharing data between cooperative threads really fast as the threads will write the result directly into the next threads stack.