Earlier I used mostly languages that encouraged forking instead of threading so I am wondering. Do I understand correctly that "current working directory" is a per process feature and thus one cannot change to different directories in different threads?
What would be the recommended solution if I wanted to run code in parallel but each "stream" needs to change to its own directory? Shall I use fork ?
Just to give some more background, I need to run an external command on many folders and that command always works in the current directory.