Precisely what owns the 'current working directory'?
问题 I'm aware what a working directory (wd) is and it's purpose (for writing software at least). What I don't understand is the ownership of the wd. Furthermore, I want to understand how the answer may vary between operating systems so any clarification on unusual behaviour on a particular OS would be appreciated. So firstly, where does the wd manifest itself? Is it within a process, and all threads created by that process share the same wd? If the wd gets modified by thread 'A', is the change