On Sep 17, 9:09 pm, castillo.br... / gmail.com wrote: > I wanted to create a thread pool. I know I could have used a > SizedQueue in the thread pool, but I wanted to later on change the > thread queue to a priority queue. > > With ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-cygwin] I get a > deadlock error. ruby 1.8.5 (2006-08-25) [i386-mswin32] is not giving > me that error. I think that my code is written correctly and that > this may be a bug in the version/build of ruby I am running on. Does > anybody see a problem with this code? Thanks. > I've tried using some different version of ruby to see if the code works or not: Failed versions: ------------------------ ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux] ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-cygwin] ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] Working versions: ------------------------ ruby 1.8.5 (2006-08-25) [i386-mswin32] ruby 1.8.5 (2007-08-27 rev 4201) [x86-jruby1.0.1] ruby 1.8.3 (2005-09-21) [i686-linux] ruby 1.9.0 (2007-09-15 patchlevel 0) [i386-cygwin] It seems to me like there is something wrong with the latest stable version of ruby.