From: nobu.nokada@... Date: 2003-08-07T13:09:25+09:00 Subject: Re: Working directory in thread Hi, At Thu, 7 Aug 2003 12:49:31 +0900, Xiangrong Fang wrote: > I have a question using Dir.chdir. Is the current working directory for > a program unique to thread or to the program? My multithread program is > experiencing problems. It seems that a Dir.chdir in one thread changed > the working directory of another thread. Is there a "thread-safe" chdir? CWD is a process resource. There is no "thread-safe" way, in general. -- Nobu Nakada