[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:03059] Thread priorities

From: Dave Thomas <Dave@...>
Date: 2000-05-31 21:10:29 UTC
List: ruby-talk #3059
Thread priorities don't seem to have any effect:

        c1 = 0
        c2 = 0
        a = Thread.new do
              loop { c1 += 1 }
            end
        b = Thread.new do
              loop { c2 += 1 }
            end
        b.priority = 99999
        sleep 1
        Thread.critical = 1
        p c1  # => 347111
        p c2  # => 343477


Am I missing something?


Dave

In This Thread

Prev Next