From: Quintus Date: 2011-04-01T02:14:13+09:00 Subject: Re: how to refine the code to avoid using fork on windows? Am 31.03.2011 17:15, schrieb Michal Suchanek: > You can also use the system() function. > > Thread.new { system "dd", "if=/dev/zero", "of=/dev/null" } > => # A better way IMO is to use the #spawn method which calls the external process and doesn't wait for it to complete. It immediately returns the PID of the spawned process. Since Ruby 1.9 this works even on Windows. Vale, Marvin