From: Michal Suchanek Date: 2011-04-01T00:15:20+09:00 Subject: Re: how to refine the code to avoid using fork on windows? On 31 March 2011 16:49, Ethan Huo wrote: > Jeremy Bopp wrote in post #990214: >> Have you considered using Cygwin (http://cygwin.com) and the ruby >> package it provides?  That will give you an emulated fork.  While Cygwin >> is not a panacea for porting Unix applications to Windows, it may work >> for you. >> >> -Jeremy > > Hi, Jeremy, i knew cywin works for it, but cygwin has a memory limit for > our usage, that's why we won't use cygwin any more. > what i need now it to move it into Mingw and get it work... > thanks for your quick reply, i appreciate it:) You can also use the system() function. Thread.new { system "dd", "if=/dev/zero", "of=/dev/null" } => # system "killall", "-USR1", "dd" 317912807+0 records in 317912807+0 records out 162771357184 bytes (163 GB) copied, 139.204 s, 1.2 GB/s => true HTH Michal