From: Glenn Parker Date: 2005-02-15T22:17:48+09:00 Subject: Re: Threading in Windows David Corbin wrote: > On Tuesday 15 February 2005 04:05 am, Robert Klemme wrote: >> >>If processes are short lived it could simply be a timing issue. > > They are not. I my spike, each thread was running for 5+ minutes. I have > sample code at the office that I'll try to post. Is it possible that the processes themselves are blocked on some externally limited resource? I would start by isolating the presumed failure case in a simpler example. On WinXP, the following script will happily start as many simultaneous console windows as I care to ask for. $command = "start ." 4.times do |i| Thread.new(i) do |i| sleep 3 system($command) puts "thread #{i} system returned #{$?}" sleep 3 end end Thread.list.each do |t| t.join unless t == Thread.main end -- Glenn Parker | glenn.parker-AT-comcast.net |