From: schulz.stefan.mail2@... Date: 2015-10-31T13:51:58+00:00 Subject: [ruby-core:71284] [Ruby trunk - Bug #11642] [Open] Thread List Example - Wrong Output Issue #11642 has been reported by Stefan Schulz. ---------------------------------------- Bug #11642: Thread List Example - Wrong Output https://bugs.ruby-lang.org/issues/11642 * Author: Stefan Schulz * Status: Open * Priority: Normal * Assignee: * ruby -v: * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- http://ruby-doc.org/core-1.9.3/Thread.html list ��� array click to toggle source Returns an array of Thread objects for all threads that are either runnable or stopped. Thread.new { sleep(200) } Thread.new { 1000000.times {|i| i*i } } Thread.new { Thread.stop } Thread.list.each {|t| p t} produces: WRONG: # # # # RIGHT: # # # # -- https://bugs.ruby-lang.org/