From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2001-12-20T11:48:44+09:00 Subject: [ruby-talk:29052] Re: A Ruby programmer walked into a bar and ordered a Ruby-Thread In article , Dave Thomas wrote: >"Mark Hahn" writes: > >> I don't understand the problem. I just ran this on windows: >> >> Thread.new {loop{print 'a';sleep(0.1)}} >> Thread.new {loop{print 'b';sleep(0.214)}} >> sleep(2) > >Try it without the sleeps, but with priorities set differently. Under >Unix, and with big enough loop values, the threads will loop in >accordance with their priorities. Under Windows, one gets exclusive >control. > So the workaround is to make sure that you don't set any thread priorities in Windows? I didn't see any problem with threads on windows when I tried them there, but I didn't give any threads priority either. BTW: is this a cygwin problem? Phil