For the last example of thread (meetup), when we passing &i to the thread's args, we could still potentially causing trouble I assume? (since we cannot be sure this got executed prior than the for loop finished and the stack that i existed got unwinded)
great video! cleared up a lot of things for me
Threads content starts at 51:10
Hope I saw your comment earlier lol
@@chrisli1010 no prob. You are learning CS too? This series by Chris is a really good content!
For the last example of thread (meetup), when we passing &i to the thread's args, we could still potentially causing trouble I assume? (since we cannot be sure this got executed prior than the for loop finished and the stack that i existed got unwinded)