From: Javier Isassi Date: 2012-11-28T01:00:11+09:00 Subject: why this behaves like singleton The attached code prints: print g1 locks 5 print g2 locks 5 3 I would expect g2 to print 3. Why the Lock object behaves like singleton? Thanks. Javier. Attachments: http://www.ruby-forum.com/attachment/7902/whySing.rb -- Posted via http://www.ruby-forum.com/.